NIB / PLAYGROUND
Accordion playground — NibComponents
Try accordion in Flutter. Coordinate expandable sections, then decide whether several can remain open.
Open interactive viewCoordinate expandable sections, then decide whether several can remain open.
Read the full component guide and API
Public widgets and APIs
- NibAccordion
- NibAccordionController
- NibAccordionItem
Example Dart code
NibAccordion(
items: const [
NibAccordionItem(title: Text('How does it work?'), content: Text('Tap the header to reveal the answer.')),
NibAccordionItem(title: Text('Can several stay open?'), content: Text('Set allowMultipleOpen to true.')),
],
)Playground controls
| Control | Type | Options or range | Help |
|---|---|---|---|
| Allow multiple sections | toggle | ||
| Disable the second section | toggle | ||
| Animate expansion | toggle | ||
| First section title | text |