0.0.10 • Published 9 months ago
select-vue3 v0.0.10
select-vue3
A simple select component for vuejs 3.
Features:
- Search
- Custom Color
Demo
Installation
Install select-vue3 with npm
npm install select-vue3
Usage/Examples
<script setup>
import { AppSelect } from "select-vue3";
const options = [
{
id: 0,
label: "Aaren",
},
{
id: 1,
label: "Abagael",
},
{
id: 2,
label: "Abbe",
},
{
id: 3,
label: "Abbi",
},
{
id: 4,
label: "Abbie",
},
{
id: 5,
label: "Abigale",
},
];
const theme = {
color: "4c7dfc", //code color without '#'
}; // Custom color theme
function handleOptionsSelected(d) {
console.log(d); // output: option selected from AppSelect
}
</script>
<template>
<AppSelect
:options-list="options"
:theme="theme"
@get-option-selected="handleOptionsSelected"
/>
</template>
Authors
Contributors
TODOS
- Custom design