Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Examples
Yes! Every component is written in strict TypeScript and exports precise interfaces for your application.
Yes. Keyboard navigation, ARIA attributes, and screen reader announcements are handled natively.
Absolutely. Drop it directly into your App Router RSC or Client boundary architectures.
import { Accordion } from 'kalki-design'
<Accordion>Click me</Accordion>Installation
npx kalki-design add accordionUsage
import { Accordion } from 'kalki-design'
export default function Example() {
return <Accordion />
}API Reference
| Name | Type | Default | Description |
|---|---|---|---|
Nameitems | TypeAccordionItem[] | Default— | DescriptionArray of items containing title, content, and disabled state. |
Namevariant | Type'default' | 'bordered' | 'separated' | Default'default' | DescriptionVisual style of the accordion. |
Namemultiple | Typeboolean | Defaultfalse | DescriptionAllows multiple items to be open at once. |