Rating
A star rating with hover preview and keyboard.
Readonly
Sizes
Colors
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
max | number | 5 | Number of stars shown. |
readonly | boolean | false | Whether the rating is display-only and cannot be changed. |
size | "default" | "lg" | "sm" | 'default' | Size of each star. |
color | string | 'text-amber-500' | Tailwind text-color class applied to filled stars. |
ariaLabel | string | null | null | Accessible label for the rating group. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Current rating. Two-way bindable with `[(value)]`. |
disabled | boolean | false | Whether the rating is disabled. Two-way bindable with `[(disabled)]`. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.