Files
policy-ui/.claude/skills/nuxt-ui/components/input-menu.md
HaimKortovich a2eb1f3789 Add nuxt-skills and update auto quotes to use new policy API structure
- Add nuxt-skills (vue, nuxt, nuxt-ui) to .claude/skills/
- Create useCustomerSelection() composable for managing insured/buyer selection
- Create usePolicyApi() composable for policy API operations
- Update auto quote components to use insured/buyer instead of client
- Update vehicle fields: remove valorVehiculo, add market_value, requested_value, rc_limits
- Make chassis_number and engine_number optional
- Update auto quote types and composables to match new API structure
- Update auto quote page to submit to policy API with new structure
2026-04-27 14:56:53 -05:00

2.1 KiB

InputMenu

An autocomplete input with real-time suggestions.

Based on Reka UI InputMenu

Key Props

  • items: as an array of strings, numbers or booleans:

::component-code

prettier: true ignore:

  • modelValue
  • items external:
  • items
  • modelValue props: modelValue: 'Backlog' items: - Backlog - Todo - In Progress - Done

::

You can also pass an array of objects with the following properties:

  • label?: string{lang="ts-type"}
  • type?: "label" | "separator" | "item"{lang="ts-type"}
  • icon?: string{lang="ts-type"}
  • avatar?: AvatarProps{lang="ts-type"}
  • chip?: ChipProps{lang="ts-type"}
  • disabled?: boolean{lang="ts-type"}
  • onSelect?: (e: Event) => void{lang="ts-type"}
  • class?: any{lang="ts-type"}
  • ui?: { tagsItem?: ClassNameValue, tagsItemText?: ClassNameValue, tagsItemDelete?: ClassNameValue, tagsItemDeleteIcon?: ClassNameValue, label?: ClassNameValue, separator?: ClassNameValue, item?: ClassNameValue, itemLeadingIcon?: ClassNameValue, itemLeadingAvatarSize?: ClassNameValue, itemLeadingAvatar?: ClassNameValue, itemLeadingChip?: ClassNameValue, itemLeadingChipSize?: ClassNameValue, itemLabel?: ClassNameValue, itemTrailing?: ClassNameValue, itemTrailingIcon?: ClassNameValue }{lang="ts-type"}

::component-code

ignore:

  • modelValue.
  • multiple: to allow multiple selections, the selected items will be displayed as tags.
  • placeholder: to set a placeholder text.
  • content: to control how the InputMenu content is rendered, like its align or side for example.
  • arrow: to display an arrow on the InputMenu.
  • color: to change the ring color when the InputMenu is focused.
  • variant: to change the variant of the InputMenu.
  • size: to change the size of the InputMenu.
  • icon: to show an Icon inside the InputMenu.
  • avatar: to show an Avatar inside the InputMenu.

Usage

<UInputMenu
  <!-- props here -->
/>

Slots

  • #leading