-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello,
When using styled
I noticed that all the possible html props types are available on the component created which hid the variant in a very long list.
I think the whole point of styled is to restrict the set of the possible native props + providing our variants.
Is there a way to restrict the component's props to its variants + a specific subset (or no subset at all) of the possible other native props for the specific component used as the first argument?
For example I defined a Text
component using styled("span", { /* some variants */ })
and here is what I have as possible props (a very long list ^^) :
Metadata
Metadata
Assignees
Labels
No labels