Replies: 1 comment 2 replies
-
Hello! The API you are proposing would not allow to implement our recent addition, In places where we do not have an opinion about items order (container, expandable section and derivatives), we expose Do you have any supportive examples on why we should consider changes in our approach? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are some components such as Tabs, and Flashbars which prefer expose a configuration-based API where JSX is supplied as part of a configuration object, whereas others prefer to pass it as children.
Here is an example of what I mean:
The way it is right now seems to be:
children
prop/slot is there for a reason)Sidenote (I could break this out into a separate discussion, if need be): the flashbar API is odd in general. It accepts an array of
items
instead of implementing via a JSX-based API (compound components). Something like this:Beta Was this translation helpful? Give feedback.
All reactions