Accordion

Reveal related optional content without leaving the current view.

Default

One item open at a time: opening an item closes the other. Pass defaultValue to open items on first render.

Pick the voice, accent and speaking rate your agent uses on calls.

Multiple

Pass type="multiple" when each section can be reviewed on its own and several may stay open.

Manage your plan, invoices and billing contacts.

Invite and manage the people who can access this workspace.

Sizes

Set size on AccordionTrigger. sm is 40px tall for dense settings panels; md (44px) is the default.

Disabled

Pass disabled to an AccordionItem to keep it closed and dim its trigger.

Best practices

When to use

  • Use for related, optional content people can reveal without leaving the page, such as advanced agent settings or FAQ answers.
  • Do not hide required form fields or the next step in an Accordion; use a page, Dialog or Stepper for work that needs sustained attention.

Behavior

  • The default type="single" keeps one item open. Use type="multiple" only when people compare or review sections independently.
  • Open the item people most likely need with defaultValue, for example defaultValue={["voice"]}.
  • Use size="sm" (40px) in dense settings panels and the default md (44px) elsewhere; do not mix sizes in one Accordion.
  • Pass disabled to an AccordionItem for a section that is unavailable on the current plan, and say why in the trigger label.

Content

  • Triggers are short sentence-case nouns (“Human handoff”, “Calling hours”), not questions or full sentences.
  • Keep panel text to a sentence or two; link out for anything longer.

Accessibility

  • Always wrap AccordionTrigger in AccordionHeader so the trigger is announced as a heading-level button.
  • Keep each trigger directly before its panel in reading and keyboard order.