By default, the PanelBar is in an uncontrolled state.
To manage the state of the PanelBar:
- Set the
expandedproperty to the expanded items value.
- Handle the
- Set the new value trough the props.
The following example demonstrates how to use the
expanded property of the PanelBar to expand or collapse all its items.