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

Menu

Arc Picker

Preview

Curve side
Drag vertically or scroll to choose. Use arrow keys to move, Home and End to jump.

Drag vertically, scroll or use the arrow keys.

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/arc-picker

Import the shared styles once in your application.

TSUsage
import ArcPicker from '@/components/beui/controls/ArcPicker.vue'
import '@/components/beui/styles.css'

API Reference

class?
string
Default—
options
readonly ChoiceOption[]
Default—
v-model?
string

Bound value. Use `v-model` to control the picker.

Default—
defaultValue?
string

Initial choice when the picker is not controlled through `v-model`.

Default—
side?
ArcPickerSide

The side the arc bows toward. Top and bottom scroll horizontally.

Default"right" as ArcPickerSide
radius?
number

Radius in pixels. Larger radii make a gentler curve.

Default280
itemHeight?
number

Minimum spacing along the arc. Horizontal sides also make room for label widths.

Default48
visibleCount?
number
Default7
disabled?
boolean
Defaultfalse
name?
string
Default—
label?
string

Accessible name of the radiogroup.

Default—
labels?
Partial<ArcPickerMessages>

Override any built-in string.

Default—
@value-change?
(value: string) => void

Called for each enabled choice crossed during scrolling, dragging and momentum.

Default—

Updated