GitHub

Accordion

llms.txt

Example

Usage

		
<Accordion type="single">
	<AccordionItem title="Is it accessible?">
		Yes. It adheres to the WAI-ARIA design pattern.
	</AccordionItem>
	<AccordionItem title="Are you sure?">
		I mean, I hope so? It's based on the bits-ui accordion component, so if not it's not my fault 😅
	</AccordionItem>
</Accordion>

API Reference

Accordion

A vertically stacked set of interactive headings that each reveal a section of content.

Property
children
type
value
onValueChange
disabled
ref

AccordionItem

A single collapsible section within the accordion.

Property
title
children
value
disabled
ref