kipluo
Included in $29 packNumbersReact + FlutterFormsDashboards

React Scrub Number Input – Interactive UI Component

Design-tool number field: drag sideways to scrub, fling and it coasts with friction, hit a limit and the pill stretches like rubber. Double-click to type an exact value. Customize colours, shadows, and Playful, Minimal, or Mono styles. Copy React & Flutter code or install via CLI.

Live interactive demo · Drag sideways on a value, or fling it into the end.
Opacity
72%
Blur
12.0px
Rotate
45°
Motion preview loop
Opacity
72%

Live vector preview rendered straight from the same 120 Hz spring engine—no heavy GIF compression artifacts, zero layout shift.

Customization playground

Tune outline, fill, accent, text colour, and shadow direction live above. The snippet updates automatically for copy-and-paste.

Customize

Colours
Shadow
<ScrubNumberInput />

Installation

Install directly into your project source with the Kipluo CLI (React/Tailwind v4) or add the matching Flutter package.

Install

$ npx kipluo add scrub-number-input

Working code example

scrub-number-input.tsx
import { ScrubNumberInput } from "@/components/kipluo/scrub-number-input";

export function Example() {
  return (
    <div className="flex items-center justify-center p-8">
      <ScrubNumberInput />
    </div>
  );
}

What Scrub Number Input does

  • Design-tool number field: drag sideways to scrub, fling and it coasts with friction, hit a limit and the pill stretches like rubber. Double-click to type an exact value.
  • Designed for Forms, Dashboards flows with real spring physics that stay smooth even when users interrupt or spam interactions.
  • Ships with Playful, Minimal, and Mono themes, synthesized Web Audio feedback (optional via sound={false}), and automatic prefers-reduced-motion support.

Accessibility & sound behavior

Keyboard & screen readers: role="spinbutton". Arrows step (Shift for ×10), Page Up / Down ×10, Home / End go to the limits. Enter edits; Enter commits and Escape cancels.

Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.

Sound cues: Ticks every 5% rising with the value, a boing when it hits a limit, and a pop on typed entry. Disable per instance with sound={false} or globally via setSoundEnabled(false).

API reference

label / unitstring
Label and value suffix. Default "Opacity" / "%".
min / max / stepnumber
Range and step; decimals follow the step. Default 0 / 100 / 1.
value / defaultValuenumber
Controlled or initial value. Default — / 72.
onValueChange(value: number) => void
Called when the value comes to rest.
sensitivitynumber
Units per px of drag. Default (max − min) / 220.
style"playful" | "minimal" | "mono"
Set with data-kstyle on any ancestor. Default inherited.
soundboolean
Plays this component's sounds. The global switch setSoundEnabled(false) silences every component. Default true.

Framework compatibility

Platform / ToolStatusDetails
React 18 & 19Full supportZero peer runtime lock-in beyond @kipluo/core.
Next.js App RouterFull supportShips with 'use client' boundaries; SSR-safe hydration.
Vite / Remix / AstroFull supportStandard ESM TypeScript source files you own.
Tailwind CSS v4 & shadcn/uiNativeInherits CSS variables and installs via shadcn registry or CLI.
Flutter (Dart)Native packageMatching spring physics, themes, and PCM audio in packages/flutter/kipluo.

Build it yourself: related tutorials

All tutorials →