rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

NumberInput

Numeric input with increment/decrement stepper buttons, min/max bounds, and step control.

Examples

Basic

Number input with increment and decrement buttons.

With Step

Increments in steps of 5.

Min / Max Bounds

Constrained between 0 and 10.

Disabled

Number input in a disabled state.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { NumberInput } from "@rokle/components";
import { NumberInput } from "@rokle/components";

export function Example() {
  return <NumberInput />;
}

API Reference

PropTypeDefaultDescription
valuenumber-Current numeric value.
onValueChange(value: number) => void-Called when value changes.
minnumber-Minimum allowed value.
maxnumber-Maximum allowed value.
stepnumber1Increment/decrement step size.