You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue3-icon-picker

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-icon-picker

Vue 3 icon picker

0.2.1
latest
Source
npmnpm
Version published
Weekly downloads
415
41.16%
Maintainers
1
Weekly downloads
 
Created
Source

Vue 3 Icon Picker npm (scoped)

Icon picker component

Demo GIF

Installation

If you are using npm:

npm i vue3-icon-picker

If you are using yarn:

yarn add vue3-icon-picker

About

This package use icons from xicons with SVG components integrated from fluentui-system-icons, ionicons, ant-design-icons, material-design-icons, Font-Awesome, tabler-icons and carbon. Check this website for view icons list: https://www.xicons.org.

Demo

View the live demo here

Usage

You can add this package globally to your project:

// main.js
import { createApp } from 'vue'

import App from './App.vue'

import Vue3IconPicker from 'vue3-icon-picker'
import 'vue3-icon-picker/dist/style.css'

createApp(App).use(Vue3IconPicker).mount('#app')

If needed rename component to use:

createApp(App).use(Vue3IconPicker, { name: 'IconPicker' }).mount('#app') // use in template <IconPicker />

Alternatively you can also import the component locally:

<script setup>
 import { Vue3IconPicker } from 'vue3-icon-picker'
 import 'vue3-icon-picker/dist/style.css'
</script>

You can then use the component in your template

<template>
 <Vue3IconPicker v-model="icon" placeholder="Select icon" />
</template>

Props

NameTypeDescriptionDefaultRequired
v-modelstring / string[]Selection, icon(s) SVG code(s) or name(s)nullYes
placeholderstringInput placeholderundefinedNo
multiplebooleanEnable multiple selection when set to truefalseNo
multipleLimitnumberMaximum number of selections when multiple selection is enabledInfinityNo
selectedItemsToDisplaynumberNumber of selected icons to display when multiple selection is enabled9No
iconLibrary'all' / 'antd' / 'carbon' / 'fa' / 'fluent' / 'ionicons4' / 'ionicons5' / 'material' / 'tabler'Icon library to display. This property can take an array of several libraries to display'fa'No
selectedIconBgColorstringSelected icon(s) background color'#d3d3d3'No
selectedIconColorstringSelected icon(s) color'#000000'No
clearablebooleanMake selected icon clearable when multiple is falsefalseNo
disabledbooleanDisable componentfalseNo
displaySearchbooleanDisplay search inputtrueNo
searchPlaceholderstringSearch input placeholder'Search'No
valueType'svg' / 'name'Type of selection value, icon(s) SVG code(s) or name(s)'svg'No
includeIconsstring[]List of icons to include[]No
excludeIconsstring[]List of icons to exclude[]No
includeSearchstringThe search query whose results must be includedundefinedNo
excludeSearchstringThe search query whose results must be excludedundefinedNo
emptyTextstringEmpty text'Nothing to show'No

Slots

NameParametersDescription
empty()Empty slot for the dropdown icons list

Events

  • change
    • This event is fired when selection change.

Display icons

You can simply display icons like that if your value type is svg:

<script setup>
 const icon = ref(null)
</script>

<template>
 <Vue3IconPicker v-model="icon" placeholder="Select icon" />
 <i v-html="icon"></i>
</template>

Or use custom icon component provided by this package:

<script setup>
 import { Icon } from 'vue3-icon-picker'
 const icon = ref(null)
</script>

<template>
 <Vue3IconPicker v-model="icon" placeholder="Select icon" />
 <Icon :data="icon" :size="24" color="#124ebb"></Icon>
</template>

Icon Props

NameTypeDescriptionDefaultRequired
datastringIcon svg code or nameundefinedYes
sizenumber / stringIcon size24No
colorstringIcon colorundefinedNo

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Changelog

Detailed changes for each release are documented in the release notes.

License

License: MIT

Keywords

vue

FAQs

Package last updated on 13 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts