Skip to content
SevenUI
Sign inGet Pro
On this page

Accordion

A vertically stacked set of interactive headings that each reveal an associated panel of content, built on the Base UI Accordion primitive.

A vertically stacked set of interactive headings that each reveal an associated panel of content, built on the UI SDK Accordion component.

Our flagship product combines cutting-edge technology with sleek design. Built from premium materials, it offers reliability and performance for everyday use.

Every unit is rigorously tested before shipping to ensure it meets our high quality standards.

Installation

Usage

Examples

Multiple open panels

Orders ship within 24 hours and arrive in 3-5 business days.

Returns are free within 30 days of delivery.

In a card

Unlimited projects, priority support, and team analytics.

Split items

Figma files ship with every release.

API reference

The UI SDK flavour is built on UI SDK Accordion. Its API is the SevenUI wrapper's, the same in both flavours: export names, props, data-slot values and the render prop, so code that uses only the SevenUI exports compiles against either flavour. What behaves differently, and any prop that is ignored or not supported, is listed below; code that imports a Base UI or third-party library directly needs changes. Switch to Base UI to read the prop tables, which describe that shared API in Base UI's terms.

Differences on UI SDK

  • orientation and loopFocus on the root are accepted and ignored.

Accordion

Extends the Base UI Accordion Root — all its props apply. value/defaultValue are arrays of the open item values (defaultValue={["item-1"]}), not a single value.

PropTypeDefault
value / defaultValuestring[]—
onValueChange(value: string[]) => void—
multipleboolean (renamed from openMultiple in 1.7)false
hiddenUntilFoundboolean — hidden="until-found" panels reveal via find-in-pagefalse
disabledbooleanfalse

AccordionItem

Takes the item value (and disabled).

AccordionTrigger

A native <button> inside an <h3> heading (Accordion.Header) — override the heading level via render on the primitive’s Header when composing directly. The open state styles via data-panel-open (presence) — not data-open, which lives on Item/Panel/Root. A disabled trigger stays focusable with aria-disabled="true" — style it with data-disabled:, not disabled:.

AccordionContent

Open/close animates via the animate-accordion-down / animate-accordion-up utilities. Their keyframes ship in this primitive’s registry item (the CLI merges them into your CSS); when copying the source manually, add them yourself:

--accordion-panel-height is set by Base UI on the panel.

Was this page helpful?