A labeled value with a bar, or a compact value that edits by dragging.
Installation
Examples
Default
Its value is a Scrub input: drag it sideways, click to type, or step it with the arrow keys. A double-click restores defaultValue, where the fill starts unless origin moves it.
demo.tsx
Exposure0.35 EV
Opacity80%
Compact
variant="compact" drops the bar, and the value still drags.
compact.tsx
Angle0°
Toolbar
variant="toolbar" puts a short bar between the label and the value, for a bar over a canvas. valueWidth keeps room for three digits, so the bar holds still.
toolbar.tsx
Size60px
Vertical
orientation="vertical" stands the bar upright alone, without the label or the value. stops paint the bar and color fills the thumb.
vertical.tsx
Anatomy
Each part's data-slot, which a theme styles, is beside it. Slider renders them all from its props.
bun add @roprgm/ui