Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
    • Accordion
    • Accordion
    • Avatar
    • Avatar
    • Blobby
    • Card
    • Card
    • Collapsible
    • Divider
    • Emoji
    • Emoji
    • Gradient
    • Gradient
    • Icon
    • Image
    • ListItem
    • ListItem
    • ResponsiveImage
    • SemanticList
    • Tag
    • Timeline
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Data display
  • Accordion

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
Component health
Source
View on Github
Design
View Figma
Storybook
View in 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
info

Mobile components cannot be previewed in the browser. Use Storybook mobile or run the app locally to test.

Looking for Collapsible Section?

It's located in contrib for now.

Usage​

Playground​

Loading...

Accordion props

NameTypeDefault ValueDescriptionUsage count
backgroundColorColorTokensundefined$grey50
isOpenbooleanundefined
onToggle((opened: boolean) => void)undefined
title*ReactNode
Edit this page
Previous
Toast
Next
Accordion
  • Usage
  • Playground