Number stepper preview
Interactive preview of the CyberSpec Number stepper component. A value on a readout between minus and plus keys, with MIN and MAX tags.
About this preview
Number stepper belongs to the Fields group in the CyberSpec catalog. It uses @ui-sdk/react/number-input, @ui-sdk/react/field.
Installation
Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/stepper.json
Example
"use client"
import { Stepper } from "@/components/ui/stepper"
export default function StepperDemo() {
return (
<>
<Stepper label="Frame" defaultValue={9} min={3} max={20} wheel hint="Focus the value and use the wheel to adjust." />
<Stepper label="Reflex" defaultValue={3} min={3} max={20} />
<Stepper label="Edge" defaultValue={6} min={3} max={20} hint="Locked until the next tier." disabled />
</>
)
}
Install this example
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/stepper-demo.json