-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Button.Group shorthand to render an array of buttons with a 'buttons' prop #2310
Comments
In addition to that, I would suggest adding something like: |
@anhdle14 the way other shorthand props work is you can map data from an array of objects directly to any available props on the component you are mapping to. Therefore any props on the |
Yep, this is a missing feature. Let's do it. |
Why "onClick" doesn't work when I add it on the const list? const buttonList = [ |
Currently it doesn't look like the
Button.Group
component has a way to render an array of buttons in a similar way that aMenu
orList
component will allow you to set anitems
array to render child components.I did not see anywhere upon searching issue history where it was discussed if this was a feature we should have or not. Maybe @levithomason can shed some light on this... and I am not sure if shorthand props like this are sticking around or not.
Proposal
This would render a
Button.Group
with threeButton
components.The text was updated successfully, but these errors were encountered: