Collapse
A standalone collapsible panel — click to reveal hidden content. Three
mechanisms are available: checkbox toggle, focus-to-open, and native
<details>. Unlike Accordion, each Collapse is independent.
Basic (checkbox)
Default method="checkbox" — click the title bar to toggle.
Open by default
Pass open to start the panel in the expanded state.
Arrow icon
icon="arrow" adds an animated chevron on the right side.
Plus icon
icon="plus" toggles between + and − symbols.
Focus method
method="focus" — the panel opens while the element has focus and
closes when focus leaves. Useful for tooltip-style patterns.
Details method
method="details" uses native <details>/<summary>
— content is browser-searchable with Ctrl+F.
Inside a join
Add classes="join-item" and wrap in <div class="join join-vertical">
for a seamless connected group.
Rich content
The default slot accepts any content — lists, images, code blocks, etc.
Colored backgrounds
Override the background via classes to use any DaisyUI color token.