Accordion

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.

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.

PropTypeDefaultDescription
type"single" | "multiple""single"Controls whether one or multiple items can be opened at the same time.
valuestring | string[]undefinedControlled open value(s).
defaultValuestring | string[]undefinedInitial open item value(s).
onValueChange(value: string | string[]) => voidundefinedCallback 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"undefinedLED status dot color displayed on the trigger when open.
Trigger.statusstringundefinedOptional bordered uppercase status tag next to the trigger title.
Trigger.countstring | numberundefinedRight-aligned monospace counter (e.g. 2 CHANNELS).
Content.flushbooleanfalseRemoves inner padding for edge-to-edge lists such as ChannelList.