Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Wheel Picker

Preview

Born June 9, 2004
June
9
2004

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/wheel-picker

Import the shared styles once in your application.

TSUsage
import WheelPicker from '@/components/beui/ranges/WheelPicker.vue'
import '@/components/beui/styles.css'

API Reference

options
readonly WheelPickerOption[]
Default—
v-model?
string
Default—
defaultValue?
string
Default—
@value-change?
(value: string) => void
Default—
visibleCount?
number

Rows visible through the window, odd. More = flatter curve.

Default5
itemHeight?
number

Row height in px.

Default36
disabled?
boolean
Defaultfalse
sound?
boolean

Play a short tick each time the selected value changes.

Defaultfalse
class?
string
Default—
aria-label?
string
Default—
labels?
Partial<WheelPickerMessages>
Default—

Updated