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/dropdown-menu.md
1# DropdownMenu23A menu to display actions when clicking on an element.45> Based on [Reka UI DropdownMenu](https://reka-ui.com/docs/components/dropdown-menu)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- `avatar?: AvatarProps`{lang="ts-type"}14- `kbds?: string[] | KbdProps[]`{lang="ts-type"}15- [`type?: "link" | "label" | "separator" | "checkbox"`{lang="ts-type"}](#with-checkbox-items)16- [`color?: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral"`{lang="ts-type"}](#with-color-items)17- [`checked?: boolean`{lang="ts-type"}](#with-checkbox-items)18- `disabled?: boolean`{lang="ts-type"}19- [`slot?: string`{lang="ts-type"}](#with-custom-slot)20- `onSelect?: (e: Event) => void`{lang="ts-type"}21- [`onUpdateChecked?: (checked: boolean) => void`{lang="ts-type"}](#with-checkbox-items)22- `children?: DropdownMenuItem[] | DropdownMenuItem[][]`{lang="ts-type"}23- `class?: any`{lang="ts-type"}24- `ui?: { item?: ClassNameValue, label?: ClassNameValue, separator?: ClassNameValue, itemLeadingIcon?: ClassNameValue, itemLeadingAvatarSize?: ClassNameValue, itemLeadingAvatar?: ClassNameValue, itemLabel?: ClassNameValue, itemLabelExternalIcon?: ClassNameValue, itemTrailing?: ClassNameValue, itemTrailingIcon?: ClassNameValue, itemTrailingKbds?: ClassNameValue, itemTrailingKbdsSize?: ClassNameValue }`{lang="ts-type"}2526You can pass any property from the [Link](/docs/components/link#props) component such as `to`, `target`, etc.2728- `content`: to control how the DropdownMenu content is rendered, like its `align` or `side` for example.29- `arrow`: to display an arrow on the DropdownMenu.30- `size`: to control the size of the DropdownMenu.31- `modal`: to control whether the DropdownMenu blocks interaction with outside content.32- `disabled`: to disable the DropdownMenu.33- `slot`:3435## Usage3637```vue38<UDropdownMenu39<!-- props here -->40/>41```4243## Slots4445- `#item`46