- Accordion
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Checkbox
- Combobox
- Container
- CurrencyInput
- DistributionSlider
- Drawer
- Dropdown
- Grid
- Heading
- Image
- Input
- InputGroup
- Label
- Logo
- MapPin
- Modal
- NativeSelect
- NumberInput
- OtpInput
- PhoneInput
- Popover
- Progress
- PropertyCalendar
- RadioGroup
- RadioGroupCards
- ResponsiveModal
- ScrollArea
- SearchBar
- SearchBarFallback
- SearchInput
- Select
- Separator
- Spinner
- Switch
- Tabs
- Text
- Textarea
- Toast
- Toggle
- ToggleGroup
- Tooltip
Accordion
A vertically stacked set of panels, only one of which can be expanded at a time.
pnpm add @wandercom/design-system-web
The Accordion component displays a vertically stacked set of panels, only one of which can be expanded at a time.
import { Accordion } from '@wandercom/design-system-web';
export function Example() {
return (
<Accordion
items={[
{
id: '1',
title: 'What is the capital of Italy?',
content: 'The capital of Italy is Rome.',
},
]}
/>
);
}Loading example...
items
Array<{ id: string, title: React.ReactNode, content: React.ReactNode }>
Array of accordion items.
slots
{ root?: string, item?: string, trigger?: string, content?: string }
Custom CSS classes for component slots.