Accordion

Sections that open in place. type="single" keeps one open at a time (add collapsible to let it close); type="multiple" lets several stay open. Each AccordionItem has a title, an optional quiet meta such as a count, and its content. Opening fades the content in and turns the chevron; nothing animates its height.

import { Accordion, AccordionItem } from "@puckoops/camelot";

Billing contact
accounts@nordvikatelier.com
Terms
30 days
VAT number
GB 318 4471 20

NameDescriptionDefaultControl
type
One open at a time, or several
string
-
type
collapsible
single only: the open section can close
boolean
-
defaultValue
The section open at first
string
-
variant
Hairlines only, or on a card surface
"plain""framed"
"plain"
variant

Also takes RAccordion.AccordionSingleProps | RAccordion.AccordionMultipleProps.

When to use

Use Accordion for secondary sections the reader opens one at a time: advanced settings, a client's past engagements, questions and answers. Keep what everyone needs outside it, and never hide a required field in a closed section. variant="framed" puts it on a card surface.

  • Use Tabs instead when the sections are peers the reader switches between.
  • Use Drawer instead for one record's detail opened from a list.

Examples

Multiple

Several sections open together.

Billing contact
accounts@nordvikatelier.com
Terms
30 days
VAT number
GB 318 4471 20

Annika signs off print proofs herself; send them as PDF, never as a link.

Framed

On a card surface, for a settings page.

Billing contact
accounts@nordvikatelier.com
Terms
30 days
VAT number
GB 318 4471 20

Controlled

Controlled from state, with settings inside a section.

Open: notifications

All Variants

Plain and framed, single and multiple.

plain

Billing contact
accounts@nordvikatelier.com
Terms
30 days
VAT number
GB 318 4471 20

framed

Brand system (2024), signage pilot (2025), two annual reports. Files for each are in Inventory.