Skip to main content

Rich Select

About 419 wordsAbout 1 min

Rich Select

Props

PropTypeDefaultDescription
idstringAuto-generatedUnique identifier for the select element.
iconstring-Icon displayed in the label (FgLabel).
labelstring-Label text above the select.
infostring-Additional hint or info below the field.
errorstring-Error message shown below the field.
optionsArray<{ value: string | number; label: string; icon?: string; disabled?: boolean }>[]List of selectable options. Icons and disabled options are supported.
classstring-Css class name
sizestring-the input size (xs, sm, lg, xl, xxl)
modelValuestring | number | nullnullCurrently selected value. Supports v-model.
placeholderstring'Select an option'Placeholder text shown when no value is selected.
searchablebooleantrueWhether to enable the search field.
searchPlaceholderstring'Search...'Placeholder text for the search input.
clearablebooleantrueWhether the selected option can be cleared.
noResultsstring'No results found'Message to show when no options match the search term.

Emits

EventPayload TypeDescription
update:modelValuestring | number | nullEmitted when an option is selected or cleared.

Install

import { FgRichSelect } from 'fadgram-vue'

Basic usage

Preview
Select your model

Size

Preview
Select your model
Select your model
Select your model
Select your model
Select your model

Pill

Preview
Select your model