Skip to main content

Select

About 222 wordsLess than 1 minute

Select

Props

PropTypeDefaultDescription
idstringAuto-generatedUnique identifier for the select element.
iconstring-Icon to display in the label (FgLabel).
labelstring-Label text displayed above the select field.
infostring-Additional hint or info displayed below the select (FgInfo).
errorstring-Error message to show below the select (FgError).
optionsArray<{ value: string | number; label: string }>[]List of selectable options with value and label fields.
modelValuestring | number | nullnullBound value of the select input. Supports v-model.
placeholderstring-Placeholder text shown as an initial unselectable option.
disabledbooleanfalseDisables the entire select input if true.

Emits

EventPayload TypeDescription
update:modelValuestring | number | nullEmitted when the selected value is updated.

Install

import { FgSelect } from 'fadgram-vue'

Basic usage

Preview