add component support
Merge pull request #1 from Swatinem/component

add component support