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/select-menu.md
1# SelectMenu23An advanced searchable select element.45> Based on [Reka UI SelectMenu](https://reka-ui.com/docs/components/combobox)67## Key Props89- `items`: as an array of strings, numbers or booleans:1011## ::component-code1213prettier: true14ignore:1516- modelValue17- items18- class19external:20- items21- modelValue22props:23modelValue: 'Backlog'24items: - Backlog - Todo - In Progress - Done25class: 'w-48'2627---2829::3031You can also pass an array of objects with the following properties:3233- `label?: string`{lang="ts-type"}34- [`type?: "label" | "separator" | "item"`{lang="ts-type"}](#with-items-type)35- [`icon?: string`{lang="ts-type"}](#with-icons-in-items)36- [`avatar?: AvatarProps`{lang="ts-type"}](#with-avatar-in-items)37- [`chip?: ChipProps`{lang="ts-type"}](#with-chip-in-items)38- `disabled?: boolean`{lang="ts-type"}39- `onSelect?: (e: Event) => void`{lang="ts-type"}40- `class?: any`{lang="ts-type"}41- `ui?: { label?: ClassNameValue, separator?: ClassNameValue, item?: ClassNameValue, itemLeadingIcon?: ClassNameValue, itemLeadingAvatarSize?: ClassNameValue, itemLeadingAvatar?: ClassNameValue, itemLeadingChipSize?: ClassNameValue, itemLeadingChip?: ClassNameValue, itemLabel?: ClassNameValue, itemTrailing?: ClassNameValue, itemTrailingIcon?: ClassNameValue }`{lang="ts-type"}4243## ::component-code4445ignore:4647- modelValue.48- `multiple`: to allow multiple selections, the selected items will be separated by a comma in the trigger.49- `placeholder`: to set a placeholder text.50- `content`: to control how the SelectMenu content is rendered, like its `align` or `side` for example.51- `arrow`: to display an arrow on the SelectMenu.52- `color`: to change the ring color when the SelectMenu is focused.53- `variant`: to change the variant of the SelectMenu.54- `size`: to change the size of the SelectMenu.55- `icon`: to show an [Icon](/docs/components/icon) inside the SelectMenu.56- `avatar`: to display an [Avatar](/docs/components/avatar) inside the SelectMenu.5758## Usage5960```vue61<USelectMenu62<!-- props here -->63/>64```6566## Slots6768- `#leading`69