vue-pick
Features
- Single select, multiselect, and nested tree select with cascading selection
- Same API across Vue 2.7 and Vue 3
- Native
<select>wrapper and custom dropdown - Full keyboard navigation and ARIA support
- CSS custom properties for theming
- Zero runtime dependencies
Quick start
npm install vue-pick
import "vue-pick/style.css"
<script setup>
import { ref } from "vue"
import { VPickNative } from "vue-pick"
const selected = ref(null)
const options = [
{ label: "Todo", value: "todo" },
{ label: "In Progress", value: "in-progress" },
{ label: "Done", value: "done" },
]
</script>
<template>
<VPickNative
v-model="selected"
:options="options"
placeholder="Select status"
/>
</template>
For Vue 2.7, change the import path to vue-pick/vue2.
Theming
Styling is driven entirely by CSS custom properties, so there are no size or variant props to learn. Set the variables anywhere in scope, on the component itself or on an ancestor, and every VPick below inherits them.
<VPick
v-model="selected"
:options="options"
style="--vpick-height-default: 1.75rem; --vpick-width: 18rem"
/>
The most common ones:
| Variable | Default | Controls |
|---|---|---|
--vpick-height-default |
2rem |
Control height |
--vpick-width |
fit-content |
Trigger width |
--vpick-border-radius |
0.625rem |
Corner radius |
--vpick-listbox-max-height |
16rem |
Dropdown height before scroll |
See the theming guide for the full list.
Documentation
Full docs, live examples, and API reference at vue-pick.js.org.
License
MIT
Related Packages
@riophae/vue-treeselect
A multi-select component with nested options support for Vue.js
1,716,169
2,954
@hanye9895/vue-treeselect
A multi-select component with nested options support for Vue.js
6,397
2,955
Version History
| Version | Released | License |
|---|---|---|
| 0.32.1 | MIT | |
| 0.32.0 | MIT | |
| 0.31.0 | MIT | |
| 0.30.0 | MIT | |
| 0.29.0 | MIT | |
| 0.28.1 | MIT | |
| 0.28.0 | MIT | |
| 0.27.1 | MIT | |
| 0.27.0 | MIT | |
| 0.26.0 | MIT | |
| 0.25.0 | MIT | |
| 0.24.0 | MIT | |
| 0.23.2 | MIT | |
| 0.23.1 | MIT | |
| 0.23.0 | MIT | |
| 0.22.1 | MIT | |
| 0.22.0 | MIT | |
| 0.21.0 | MIT | |
| 0.20.0 | MIT | |
| 0.19.1 | MIT | |
| 0.19.0 | MIT | |
| 0.18.0 | MIT | |
| 0.17.1 | MIT | |
| 0.17.0 | MIT | |
| 0.16.3 | MIT | |
| 0.16.2 | MIT | |
| 0.16.1 | MIT | |
| 0.16.0 | MIT | |
| 0.15.1 | MIT | |
| 0.15.0 | MIT |
Showing the latest 30 of 51. See every release on npm