Package Exports
- vuetify-icon-picker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vuetify-icon-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vuetify Icon Picker
This is an vuetify component used to pick material design icons.
Preface
Are you once troubled by no icon-picker component when using framework vuetify?
If yes here is one possible solution!
Getting Started
Installing
npm i vuetify-icon-picker
Using
In an common 2.x vuetify project (and mdi
has been imported by way html cdn-link or npm i @mdi/font
), you can use this component as following:
<template>
<icon-picker v-model="selected" />
</template>
<script>
import IconPicker from "./components/IconPicker.vue";
export default {
components: {
IconPicker
},
data: () => ({
selected: ""
})
};
</script>
You can find more detailed example in this REPO
Component API
Props
Name | Type | Default | Description |
---|---|---|---|
contentHeight | number |
300 | used to specify one certain height of the container of icons |
value | string |
undefined | the chosen icon, looks like mdi-home-outline |
Events
Name | Description |
---|---|
input | together with prop value , to cater to v-model directive |