Accordion
Vertical stack of collapsible sections with single or multiple open panels.
Basic
Default expanded item
Multiple sections open
Use multiple to keep several panels open at once.
Always one open
prevent_all_closed refuses to collapse the last open item, so the panel never goes empty. Pair with an initial expanded item.
Disabled item
Disabled items don't toggle on click and are skipped by arrow-key navigation.
Headers with icons and badges
The :header slot accepts any inline content, including icons and badges.
Custom indicator
Replace the default chevron by passing an :indicator slot. Toggle visuals with the group-data-expanded/accordion-item Tailwind variant.
No indicator
Pass an empty :indicator slot to suppress the chevron entirely.
Card style
Settings group
Combine multiple with per-item class overrides to group form controls into one panel.
Setup checklist
Several accordions stacked into a longer flow, each one a section.
Workspace setup
Make it yours
Server-driven state
expanded is re-read on every LiveView patch, so binding it to an assign makes the server the source of truth.