XiodUI
HomeDocs
OverviewComponentsStyling & CustomizationChangelog

Components

  • Accordion
  • Agent Steps
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Autocomplete
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Button Split
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Circular Progress
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy To Clipboard
  • Corner Badge
  • Dashboard Grid
  • Date Picker
  • Dialog
  • Dot Matrix
  • Draggable
    Updated
  • Drawer
  • Empty
  • Field
  • Fieldset
  • File Upload
    Updated
  • Form
  • Frame
  • Gauge
  • Grid
  • Group
  • Input
  • Input Group
  • Input OTP
  • Input Payment
  • Input Phone
    Updated
  • Input Sensitive
  • Kbd
  • Kinetic Click
  • Label
  • List Box
    Updated
  • Loader
  • Marker
  • Menu
  • Menubar
  • Message
  • Meter
  • Morphic Toast
  • Navigation Menu
  • Number Field
  • Option Picker
  • Orb
  • Pagination
  • Popover
  • Preview Card
    Updated
  • Progress
  • Radio
  • Resizable
  • Ruler Picker
  • Scroll Area
  • Scroll Bar
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sortable
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Toolbar
  • Tooltip
  • Waveform
  • Wheel Picker

Loading...

Preview Skeleton

Installation Skeleton

Usage Skeleton

API Reference Skeleton

Sponsors

Support the development of XiodUI and help us build the best component library on Earth.

+++
Sponsor on GitHub

Wheel Picker

Previous: WaveformNext: Colors

A scrolling wheel for picking a value, like the iOS picker.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import { WheelPickerGroup, WheelPicker } from "xiod-ui/wheel-picker";

Anatomy

1<WheelPickerGroup>2  <WheelPicker />3</WheelPickerGroup>

API Reference

Detailed documentation of properties and options.

WheelPickerGroup

Accepts render, plus every native <div> attribute.

PropTypeDefaultDescription
children
ReactNode
–

The content of the component.

WheelPicker

Accepts render, plus every native <div> attribute.

WaveformColors
PropTypeDefaultDescription
optionsReq
WheelPickerOption<T>[]
–

The options on the wheel.

classNames
WheelPickerClassNames
–

Classes for the parts of the wheel.

defaultValue
T
–

The value selected at first, when it isn't controlled.

disabled
boolean
false

Whether the wheel ignores input and leaves the tab order.

dragSensitivity
number
3

How quickly the wheel slows after a flick. Higher values stop it sooner.

infinite
boolean
false

Whether the options repeat, so the wheel turns endlessly in either direction.

labels
Partial<WheelPickerLabels>
–

Replaces the built-in text for this instance. See LabelsProvider to change it everywhere.

name
string
–

Submits the selected value with a form under this name.

onValueChange
((value: T) => void)
–

Called with the new value when the wheel settles on an option.

optionItemHeight
number
–

The height of each option, in pixels. Defaults to 28, 36 or 44 depending on size.

readOnly
boolean
false

Whether the wheel can be focused and read but not turned.

scrollSensitivity
number
5

How far and fast the wheel turns for mouse-wheel and keyboard scrolling. Higher values turn it further and faster.

size
"lg"|"md"|"sm"
md

The size of the component.

value
T
–

The selected value. Use with onValueChange to control it.

visibleCount
number
20

The number of options around the whole wheel, which sets how sharply it curves. A quarter of them show on each side of the selected option. Use a multiple of 4.