Rating
stableCollects a numeric star rating.
Basic usage
Examples
Read-only rating
Use readOnly to display an existing score without interaction.
Custom max and labels
Change max or label text for different scoring systems.
Sizes, colors and custom icons
Rating supports controlled/uncontrolled values, custom labels, max, sizes and colors.
Features
- Controlled or uncontrolled.
- Keyboard-focusable items.
Installation
bash
pnpm dlx structyl add ratingAPI Reference
Rating API reference
Full props, types, defaults.