RatingInput
Segmented rating selector (1–N). Supports custom labels and compact mode.
Preview
Usage
import { RatingInput } from '@ramtt/ui'
<RatingInput value={rpe} onChange={setRpe} max={10} label="RPE" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value* | number | null | — | Selected value |
| onChange* | (value: number) => void | — | Change handler |
| max | number | 5 | Number of segments |
| label | string | — | Label text |
| labels | string[] | — | Custom labels per segment |
| compact | boolean | false | Smaller segment size |