Elements Accordion
Back to Elements

Accordion

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Accordion.Root

Expandable/collapsible content sections.

Prop Type Default Description
ref bind: HTMLElement | null null
value bind:
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Accordion.Content

Expandable/collapsible content sections.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Accordion.Item

Expandable/collapsible content sections.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Accordion.Trigger

Expandable/collapsible content sections.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
level number 3
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.