Component libraryCollapsible panel
Components/Essentials

Collapsible panel

Pro

A controlled or uncontrolled native disclosure panel with consumer-owned nested content and composed trigger behavior.

npx shadcn@latest add @tidal-pro/collapsible-panel
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/collapsible-panel

Import components/ui/tidal.css, components/ui/collapsible-panel.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

title and children are required. The native details root supports controlled open/onOpenChange or uncontrolled defaultOpen state; controlled open without onOpenChange is intentionally read-only. Optional disabled blocks the summary trigger. Native summary clicks run before state changes and may prevent them; native keyboard activation produces the same click path. Optional description, eyebrow, meta, leadingVisual and footer accept ReactNode values. Native details/summary/content attributes and refs pass through while open, role and disclosure ARIA remain component-owned. The native onToggle callback observes actual details state changes. Nested consumer content stays consumer-owned. The component performs no request, routing, analytics, network, storage or persistence work.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.