Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Support html5 elements #182

Closed
omid-ebrahimi opened this issue Apr 27, 2019 · 1 comment
Closed

Support html5 elements #182

omid-ebrahimi opened this issue Apr 27, 2019 · 1 comment

Comments

@omid-ebrahimi
Copy link

omid-ebrahimi commented Apr 27, 2019

I think this lib should support html5 elements (ex: section, article instead of div).
1- We can add an option to Box to specify element type.
2- We can also define new components (ex: FlexArticle, FlexSection).
We can also implement both solutions.

@jxnblk
Copy link
Member

jxnblk commented Apr 27, 2019

You can use the as prop to change the underlying HTTML element (e.g. <Box as='header' />) see https://www.styled-components.com/docs/api#as-polymorphic-prop

@jxnblk jxnblk closed this as completed Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants