Skip to content

Component: IconField

A field for picking an icon.

Inheritance

Inherits props from VAutocomplete

typescript
import IconField from '@nhtio/vuetify-fields/components/fields/icon'

Examples

vue
<IconField />

Result


Reference

Props

NameTypeDefaultRequired
modelValue`mdi-${string}` | nullnull
The currently selected icon.
filterPlaceholderstring | nullnull
Filter Field Placeholder
filterFieldPropsAcceptableVTextFieldProps
() => ({})
Filter Field Properties
clearableViaBadgebooleanfalse
Allows the user to clear the color by clicking on the badge.

Slots

btn-clear
Bindings:
NameTypeDescription
clear () => void Function to clear the currently selected color.
The slot for the clear button.

Events

NameType
update:modelValue
 (val: `mdi-${string}` | null) => void 
Emitted when the value is changed.
Properties:
NameTypeDescription
string["val"]The current value.
update:model-value
 (val: string | null) => void 
Emitted when the value is changed.
Properties:
NameTypeDescription
string["val"]The current value.
update
 (val: `mdi-${string}` | null) => void 
Emitted when the value is changed.
Properties:
NameTypeDescription
undefined["val"]`mdi-${string}` - The current value.