Skip to main content

Function: Rating()

function Rating(__namedParameters): Element;

Defined in: components/Rating.tsx:21

rating — a scale rendered as a radio group.

Stars are decorative: each option's accessible name is "3 of 5", so the control is answerable by voice and by screen reader without the user having to count glyphs. The glyph itself is aria-hidden.

Parameters

ParameterType
__namedParametersElementComponentProps

Returns

Element