Rxova
Skip to content

UseRatingResult

baseId: string;

canChange: boolean;

True when the control will actually accept input (interactive and not disabled).


commit: (next) => void;

Commit a value verbatim (keyboard entry).

ParameterType
nextnumber

void


disabled: boolean;

displayValue: number;

What should be painted right now — the hover preview if any, else value.


fills: number[];

Per-icon fill ratios for displayValue.


focusedValue: number | null;

handleBlur: (event) => void;
ParameterType
eventFocusEvent<HTMLElement>

void


hoverValue: number | null;

interactive: boolean;

True when the component renders as a control rather than an image.


max: number;

Icon count after normalization.


name: string;

rootRef: object;

Structural rather than RefObject: in @types/react 18 RefObject.current is readonly, in 19 it is mutable. Declaring the shape keeps this assignable under both, which matters because react >= 18 is a peer.

current: HTMLSpanElement | null;

select: (next) => void;

Pointer semantics: re-selecting the current value clears it.

ParameterType
nextnumber

void


setFocused: (next) => void;
ParameterType
nextnumber | null

void


setHover: (next) => void;
ParameterType
nextnumber | null

void


steps: number[];

Selectable grid values.


value: number;

The committed score, clamped and snapped.