Forms
Scrub Number Input
Scrub Number Input: A number field with increment and decrement buttons plus a draggable label that scrubs the value up or down as you drag it sideways.
Using Scrub Number Input
Scrub Number Input uses the inline preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
label | text | Weight | Up to 20 characters |
value | number | 12 | From 0 to 200; step 1 |
min | number | 0 | From 0 to 50; step 1 |
max | number | 200 | From 50 to 999; step 1 |
accentColor | color | #FF6A1F | No additional limit in the metadata. |
Which frameworks are available for Scrub Number Input?
Scrub Number Input is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Scrub Number Input depend on?
The React metadata lists no additional npm dependencies beyond React.
What accessibility details are visible in Scrub Number Input?
The React source for Scrub Number Input includes: native elements (button, input); attributes and handlers (aria-hidden, aria-label, onKeyDown); key comparisons (ArrowDown, ArrowUp, Enter). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Scrub Number Input handle reduced motion?
The source scan found no direct useReducedMotion() or matchMedia preference read in Scrub Number Input's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.