Stepper
A whole number between a minus and a plus button. Markup only: the page wires data-step and reads the field.
import { Stepper } from "@forgeron/ui";import { Stepper } from "@forgeron/ui";
// Markup only: the page wires the buttons (data-step) and reads the field.
export default function Default() {
return <Stepper label="People on the team" value={10} data-stepper="people" />;
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Names the field; the buttons read Fewer / More. |
value | number | — | The starting value, 0 to 9999. |
...rest | HTMLAttributes<HTMLSpanElement> | — | On the root, e.g. data-*. |
className | string | — | Extra classes. |