Collapsible
Expandable content sections with Paper Cut's 4-level elevation system.
Basic Usage
The default collapsible uses default (Level 3) elevation — subtle shadow at rest with medium lift on hover/open for general containers.
Variants
Four elevation levels for different contexts. Choose based on the component's role in the interface hierarchy.
Elevated (Level 4)
Strong shadow with lift animation. For Landing Pages, Hero sections, and spotlight moments.
Default (Level 3)
Subtle shadow with a moderate lift. The standard choice for general containers and panels.
Outlined (Level 2)
Border at rest, subtle lift on interaction. Lightweight and clean for dense layouts.
Flat (Level 1)
No border, no shadow. For nesting inside Cards or other elevated containers.
Icon Variations
Different icon styles for expand/collapse indication.
Best Practices
Real-world scenarios demonstrating proper elevation budget allocation. The key principle: one region should have only one "hero" — the outer container owns the elevation while inner controls remain flat.
Landing Page FAQ
Use elevated for maximum visual impact on marketing pages.
Settings Panel
Use flat inside an outer container for grouped settings.
Nested in Card
Use flat when the container already owns elevation.
Help Center
Anti-patterns
Common mistakes to avoid. The primary concern is elevation budget — stacking multiple elevated containers creates visual noise.
API Reference
Collapsible is built on top of Radix UI Collapsible primitive with Paper Cut's 4-level elevation system.
Collapsible
variant"elevated" | "default" | "outlined" | "flat"Elevation level (Level 4, 3, 2, 1)liftbooleanEnable/disable lift interaction (defaults to on except flat)openbooleanControlled open statedefaultOpenbooleanUncontrolled initial open stateonOpenChange(open: boolean) => voidCalled when open state changesElevation Levels
elevatedLevel 4Strong + liftLanding pages, hero sectionsdefaultLevel 3Medium + liftGeneral containers, panelsoutlinedLevel 2Border + subtle liftSidebars, settings, dense layoutsflatLevel 1NoneNested inside elevated containers