CollapsibleCard
patternExpandable card composed from Card + Collapsible. The Collapsible auto-bleeds inside the Card via CardPaddingContext — just wrap and it works. Use hoverable on the Card for hover lift without making it interactive. Works with all five card variants; combo gives a two-tone layout with a nested elevated Card.
All variants
Five card elevation levels with a Collapsible inside each. The Collapsible auto-bleeds to match the card body.
Composed layouts
Elevated and filled cards with expanded content. Use for settings panels, FAQ sections, or detail drawers.
Usage
Installation
API Reference
CollapsibleCard props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
Card variant | "ghost" | "outline" | "filled" | "elevated" | "combo" | "outline" | Elevation level of the outer card. |
Card hoverable | boolean | false | Enables hover lift and neutral glow without making the card a button or link. |
Card status | "success" | "warning" | "danger" | "info" | — | Colored left-edge accent bar. |
Collapsible trigger* | React.ReactNode | — | Always-visible trigger element. |
Collapsible defaultOpen | boolean | false | Start in expanded state. |
Collapsible disabled | boolean | false | Prevent toggling. |