

Every state


default


chosen


hover


focus


clicked


clearable


required


error


three-stars
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | Your rating | Label of the whole field |
| name | string | rating | Form field name |
| labels | string[] | Poor, Fair, Good, Very good, Excellent | One word per star, lowest first |
| defaultValue | number | 0 | Stars filled on first render, 0 for none |
| placeholder | string | Choose a rating | Text beside the stars while nothing is chosen |
| required | boolean | false | Marks the field required |
| clearable | boolean | false | Show a Clear rating button once a star is chosen |
| hint | string | – | Helper line under the stars |
| error | string | – | Error message, read with the group |
| onValueChange | (value: number) => void | – | Called with the new value, 0 when cleared |
More ratings
All 10rating-07 is in UI ProGet UI Pro, €199

