Skip to content

Icon List

IconList is a visual icon picker component designed for quickly filtering and selecting an icon from a predefined set. It includes search functionality, icon preview, current selection highlighting, and the ability to clear the selection.

vue
<IconList icon="heart" />

Features

  • Built-in search bar with real-time filtering (can be disabled)
  • Highlights the currently selected icon
  • Optionally allows clearing the selected icon
  • Customizable width
  • Accepts a custom icon list or uses the full default list
  • Emits useful events for external control
Component API
PropTypeDefaultDescription
modelValuestringThe currently selected icon (external value binding)
placeholderstringPlaceholder text for the search input
disabledbooleanfalseDisables input and selection
iconsListstring[]ALL_ICONSCustom list of icons to filter and select from
iconstringInternal fallback icon value if modelValue is not provided
widthstring | number'100%'Width of the component (e.g. '100%', '300px', 320)
disableSearchbooleanfalseHides the search input if true
disableClearbooleantrueHides the clear button for selected icon if true
modelSearchstring''External control of the current search query
Events
EventPayloadDescription
update:modelValuestringEmitted when an icon is selected or cleared
iconSelectstringEmitted when an icon is selected (same as modelValue)
update:modelSearchstringEmitted when the search query is updated
Exposed Refs
NameTypeDescription
inputRefRefRef to the native input element inside search