Pass element rather than components
interface items draw what they contain
TODO file