core-ui icon indicating copy to clipboard operation
core-ui copied to clipboard

<CollapsiblePanel> does not match Zenko-UI need

Open nicolas2bert opened this issue 4 years ago • 3 comments

Component: Make <CollapsiblePanel> more flexible.

I would like to be able to populate <CollapsiblePanel>'s <HeaderText> with my own component (i.e. children-like parameter as a prop).

Use case: User -> bucket tab -> bucket list https://projects.invisionapp.com/share/RGV9US0HKJB#/screens/392986168

nicolas2bert avatar Mar 04 '20 22:03 nicolas2bert

Hey nicolas, We do have the children prop in <CollapsiblePanel> component. You can pass the <Table/> to children prop.

ChengYanJin avatar Mar 05 '20 08:03 ChengYanJin

Is there a way to change <HeaderText> content?

nicolas2bert avatar Mar 05 '20 21:03 nicolas2bert

Not sure what do you mean by content? You can pass the content in an array to the headerItems

ChengYanJin avatar Mar 06 '20 16:03 ChengYanJin