Interactive Rating
A production-scale, light + dark Interactive Rating component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add interactive-ratingLive preview available in the gallery.
Usage
import { InteractiveRating } from "@lerpa/ui";
<InteractiveRating />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| max | number | — | |
| defaultValue | number | null | — | |
| value | number | null | — | |
| title | string | — | |
| description | string | — | |
| onChange | (value: number) => void | — | |
| className | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.