fetaUI
GitHub

Number Stepper

Minus, value and plus Icon Buttons in a 10% ink pill.

FreeWeb and MobileMotion

Preview

npx shadcn add @fetaui/number-stepper
Playground
5
States
5
1
5
Icons animation
Disabled
Motion

Installation

Terminal· bash
 npx shadcn add @fetaui/number-stepper

Accessibility

  • A named group.
  • The value is a polite live region.
  • Minus turns off at min, plus at max.

Motion

  • Digits roll as the value changes.
  • Buttons press to 0.98.

Responsive behavior

  • Hug width, touch sizes on Mobile.

Performance

  • The value rolls on change, with no loops or timers.

Note for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Import NumberStepper from @/components/fetaui/number-stepper.
  • value and onValueChange control it, or use defaultValue. min and max switch the Buttons off at the ends.
  • label names the group. Composes IconButton.

Related