Collapsible

Expandable/collapsible section with animated height transition.

Default

Configure retry logic, timeout thresholds, and alert escalation paths.

{ "event": "alert.triggered", "severity": "high" }
import { Collapsible } from '@canarist/ui'

<Collapsible title="Advanced options">
  <p>Configure retry logic and timeout thresholds.</p>
</Collapsible>

<Collapsible title="Webhook payload" defaultOpen>
  <pre>{"event": "alert.triggered"}</pre>
</Collapsible>

Reference

PropTypeDefaultDescription
titlestringTrigger button text.
childrenReactNodeContent revealed when expanded.
defaultOpenbooleanWhether the section starts expanded.
classNamestringAdditional CSS classes on the wrapper.