ThiloDesign System
DV

Collapsible

shadcn/ui

Single toggleable section. Lighter than Accordion — no group logic, no header chrome by default.

@/components/ui/collapsible

States

StatePreviewToken
Closed
Recent tickets
data-[state=closed] — content hidden, height: 0
Open
Recent tickets
T7A3763 · Fix login redirect
T7A3801 · Update filters
data-[state=open] — content visible, animated height

Trigger patterns

Icon button in header

Recent tickets

Chevron on full header

Status: Open
Priority: High

Text trigger

Collapsible vs Accordion

CollapsibleAccordion
NumberSingle sectionMultiple sections, grouped
LogicIndependent — no group coordinationtype="single" can enforce only one open
ChromeNone — bring your own header UIBuilt-in AccordionTrigger styling
Use forFilters, advanced options, secondary infoFAQs, ticket detail sections, settings groups

Sub-components

ComponentRole
CollapsibleRoot — manages open state. open + onOpenChange for controlled mode
CollapsibleTriggerToggles the open state on click — use asChild to wrap any element
CollapsibleContentAnimated content area — hidden when closed, visible when open

On this page