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

PropTypeDefaultDescription
value*number | nullSelected value
onChange*(value: number) => voidChange handler
maxnumber5Number of segments
labelstringLabel text
labelsstring[]Custom labels per segment
compactbooleanfalseSmaller segment size