Accordion
Expandable sections that reveal content on click.
Install
npx shadcn add @clearly/accordionPreview
Usage
import { Accordion } from "@/components/ui/accordion"
<Accordion />Every Clearly component also accepts glass (subtle·medium·strong), specular and className.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | "single" | "multiple" | "single" | Allow one or many open items simultaneously. |
defaultValue | string | string[] | — | Initially open item(s). |
collapsible | boolean | false | Allow closing the last open item (single mode only). |