Skip to content

Icon Picker

A user-friendly Vue 3 component for selecting icons from a searchable list. It combines a dropdown, search input, and icon preview in one compact UI.

vue
<IconPicker icon="heart" />

Features

  • Dropdown-based icon selector
  • Search functionality
  • Preview of selected icon
  • Clear/reset icon selection
  • Fully controlled or uncontrolled via v-model
  • Custom icon list support
Component API
PropTypeDefaultDescription
modelValuestringCurrently selected icon (controlled mode)
labelstringOptional field label
placeholderstring"Select an icon"Placeholder text when no icon is selected
disabledbooleanfalseDisables the component
classNamestringCustom CSS class for the outer wrapper
iconstringInitial selected icon (used in uncontrolled mode)
iconsListstring[]ALL_ICONSCustom list of available icon names
widthstring | number"100%"Custom dropdown width (e.g., 300, '20rem', '100%')
Events
EventPayloadDescription
update:modelValuestringEmitted when a new icon is selected or cleared