A Simple Scroll Picker Plugin for Vue 3

A Simple Scroll Picker Plugin for Vue 3

vue3-scroll-picker Vue 3 scroll picker plugin. A Simple Scroll Picker Plugin for Vue 3


Vue 3 scroll picker plugin.



Demo Code


yarn add vue3-scroll-picker
npm i --save vue3-scroll-picker

Register Global Component

import { createApp } from 'vue';
import App from './App.vue'
import ScrollPicker from 'vue3-scroll-picker';

const app = createApp(App);

Register Local Component

import ScrollPicker from 'vue3-scroll-picker';

export default {
  components: {


import { defineComponent, reactive, toRefs } from 'vue';
const exampleOptions = [
      label: "A1",
      value: "a1"
      label: "A2",
      value: "a2"
      label: "B1",
      value: "b1"
      label: "B2",
      value: "b2"
export default defineComponent({
  setup() {
    const state = reactive({
      options: exampleOptions,
      selections: ['a2','b1'],
    return {


Name Type Required Default Notes
:options string[][]
{ label: string; value: string }[][] yes [] Options use can select.
label value type: label as display, value to emit
label value example: [ [ { label: 'A1', value: 'a1' }, { label: 'A2', value: 'a2' } ], [ { label: 'B1', value: 'b1' } ] ]
string type: same label and value
string type example: [ [ 'a1', 'a2' ], [ 'b1' ] ]
:valueModel v-model string[] yes []
Example: [ 'a2', 'b1' ]
active-style string no '' css (change active option style)style
inactive-style string no '' css (change inactive option style)style
active-class string no '' css class
inactive-class string no '' css class


Name Description
@update:modelValue event emit when use select


Name prop Description
v-slot:option active: boolean
item: string { label: string; value: string } override option card
v-slot:center-overlay override center active option area, able to add seperator to active area
v-slot:top-overlay override top inactive option area, able to change top gradient color
v-slot:bottom-overlay override bottom inactive option area, able to change bottom gradient color

Project setup


Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Customize configuration

See Configuration Reference.

Download Details:

Author: HJ29

Demo: https://hj29.github.io/vue3-scroll-picker/

Source Code: https://github.com/HJ29/vue3-scroll-picker

vuejs vue javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get

How to Make a Simple Vue Custom Select Component

In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.

Creating a Custom Tooltip Component in Vue

There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.