Rating
The Rating component provides a group of selectable icons for rating input.
Basic Usage
import { Rating } from "@paramanu/forms-react"
export default function App() { return <Rating aria-label="Product rating" />}<div class="pm-rating pm-rating--md" role="radiogroup" aria-label="Rating">...</div>Accessibility
| Feature | Detail |
|---|---|
role="radiogroup" | Group role for rating items |
| Keyboard | Arrow keys navigate items |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "xs" | "sm" | "md" | "lg" | "md" | Rating size |
disabled | boolean | false | Disabled state |
readOnly | boolean | false | Read-only state |
count | number | — | Number of rating items |