Component docs
Loading
"use client";
import { Collapsible } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
title (required) | ReactNode | — | Title (any content). |
defaultOpen | boolean | — | Initial open state when uncontrolled. |
disabled | boolean | — | Disables interaction. |
onOpenChange | (open: boolean) => void | — | Called with the next open state. |
open | boolean | — | Open state (controlled). |
titlerequiredReactNode
Title (any content).
defaultOpenboolean
Initial open state when uncontrolled.
disabledboolean
Disables interaction.
onOpenChange(open: boolean) => void
Called with the next open state.
openboolean
Open state (controlled).
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Collapsible title="Details">Content</Collapsible>