Hi,
We use the Accordion component in our React app with the Item
component to define the list of accordion items. We could like to use the component in controlled mode for the expanded items and use multiple={true}
so let the user expand multiple items. How can we do this?
selectedIndex
only accepts a single value, so it doesn't work for multiple expanded itemsselectedItems
expects a list of item objects (I guess?), which we don't have when we use theItem
componentselectedItemKeys
expects a list of keys, but how can we define item key when we use theItem
component?
Regards,
Sandro