Accordion
Shows and hides items in a list, so a long page stays readable. Use when most members only need one item at a time.
Health
Source
Design
Storybook
Accessibility
not-compliant
Platform
Mobile
📱 Mobile-only
This component is only for mobile. To see how it looks like you can check the mobile storybook with:
yarn workspace alan-mobile dev:install-client -p ios
yarn workspace alan-mobile dev:storybook
Accessibility issues
The accordion is not focusable and misses role and aria attributes.
- Overview
- Props
- Figma
Accordion props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| backgroundColor | ColorTokensundefined | $grey50 | ||
| isOpen | booleanundefined | |||
| onToggle | ((opened: boolean) => void)undefined | |||
| title* | ReactNode |