Accordion
Collapsible disclosure component designed for FAQs, technical audio gear specs, and collapsible track metadata.
Interactive Accordion
Collapsible disclosure sections with single or multiple expansion and three visual border variants.
accordion-playground.tsx
Direct-drive quartz motor with isolated high-mass platter and balanced S-shaped mechanical tonearm.
Variant
Type
Artist Channels Module
Sharp rack-style module accordion with LED status dots, counts, and flush ChannelRow stacks.
Quick Import
Example.tsxtsx
1import {2 Accordion,3 AccordionItem,4 AccordionTrigger,5 AccordionContent,6} from "@rekodo/react";7
8export function Example() {9 return (10 <Accordion type="single" defaultValue="a" variant="bordered">11 <AccordionItem value="a">12 <AccordionTrigger>Section Title</AccordionTrigger>13 <AccordionContent>Collapsible details...</AccordionContent>14 </AccordionItem>15 </Accordion>16 );17}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "single" | "multiple" | "single" | Controls whether one or multiple items can be opened at the same time. |
| value | string | string[] | undefined | Controlled open value(s). |
| defaultValue | string | string[] | undefined | Initial open item value(s). |
| onValueChange | (value: string | string[]) => void | undefined | Callback fired when disclosure toggles. |
| variant | "bordered" | "separated" | "default" | "module" | "default" | Visual border container presentation, including sharp rack-style module panels. |
| Trigger.statusColor | "emerald" | "violet" | "sky" | "amber" | "rose" | "zinc" | undefined | LED status dot color displayed on the trigger when open. |
| Trigger.status | string | undefined | Optional bordered uppercase status tag next to the trigger title. |
| Trigger.count | string | number | undefined | Right-aligned monospace counter (e.g. 2 CHANNELS). |
| Content.flush | boolean | false | Removes inner padding for edge-to-edge lists such as ChannelList. |