Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Reference for Nuxt UI v4 (125+ components built on Reka UI + Tailwind CSS v4) including forms, overlays, and theming.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/accordion.md
1# Accordion23A stacked set of collapsible panels.45> Based on [Reka UI Accordion](https://reka-ui.com/docs/components/accordion)67## Key Props89- `items`: as an array of objects with the following properties:1011- `label?: string`{lang="ts-type"}12- `icon?: string`{lang="ts-type"}13- `trailingIcon?: string`{lang="ts-type"}14- `content?: string`{lang="ts-type"}15- `value?: string`{lang="ts-type"}16- `disabled?: boolean`{lang="ts-type"}17- [`slot?: string`{lang="ts-type"}](#with-custom-slot)18- `class?: any`{lang="ts-type"}19- `ui?: { item?: ClassNameValue, header?: ClassNameValue, trigger?: ClassNameValue, leadingIcon?: ClassNameValue, label?: ClassNameValue, trailingIcon?: ClassNameValue, content?: ClassNameValue, body?: ClassNameValue }`{lang="ts-type"}2021## ::component-code2223ignore:2425- items26external:27- items28externalTypes:29- AccordionItem[]30hide:31- class32props:33class: 'px-4'34items: - label: 'Icons'35icon: 'i-lucide-smile'36content: 'You have nothing to do, @nuxt/icon will handle it automatically.37- `disabled`:38- `slot`:3940## Usage4142```vue43<UAccordion44<!-- props here -->45/>46```4748## Slots4950- `#body`51- `#content`52