Rating
A star rating modelled as a radio group: each star is a radio named for its value, and the checked one is the rating. Click a star or use the Arrow keys to set it (selection-follows-focus) — so it is keyboard-operable and its value is exposed to assistive technology, not just a row of icons.
- Axe
- Name
- Roving
- Focus
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/rating.jsonConformance
Verified against the @publictheta/ui-spec rating specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.
- Axe — No WCAG 2 A/AA axe-core violations
- Name — The widget container exposes an accessible name
- Roving — Exactly one tab stop; Arrow keys move within the widget
- Focus — A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
See the full conformance matrix across all components.