unit
unit copied to clipboard
text and spacer components
I moved the css files to the directory css and now src is being used for the components. The reason I did this is because this is the convention for JS projects.
I also have some questions:
- I made the
Textcomponent astyled.span. This isn't quite the same API that you had before since thesize-0,size-1, etc. classes could be used on any type of element. What happens if a user wants apthat has a certain text style. Right now you would need to create a new component that composespwith aText. So something like
<p><Text size='size1'>{ children }</Text></p>
I think this should be ok, what do you think?
- Likewise, I made the
Spacerastyled.div