Closed Danziger closed 2 years ago
@vincentropy I'll leave it to you to document the current (low-level I guess) interface in the README and link it here, for now I just added some things we could consider when tweaking them.
@Danziger I updated the public interface and expanded the readme to describe how it (currently) works.
See #4 for all changes.
I'm splitting some of the suggestions from above into separate issues. I would propose having separate issues for styling #8 and themes #5.
The main interface (for React) might look something like:
But maybe some wrapper on top of that and/or different interfaces could be helpful, such as:
On the other hand, we need to decide what properties and values are we going to support and if a higher level abstraction could be helpful for some or some combinations of them.
Some additional considerations:
width
andheight
) of the SVG is set to1em
, the user will be able to change the size using thefont-size
CSS property, without having to pass that as a prop.currentColor
, the user will be able to change it using thecolor
CSS property, without having to pass that as a prop.seed
property.