Rating

A star rating with hover preview and keyboard.

Readonly

4.0 out of 5

Sizes

Colors

API reference

Inputs

PropTypeDefaultDescription
maxnumber5Number of stars shown.
readonlybooleanfalseWhether the rating is display-only and cannot be changed.
size"default" | "lg" | "sm"'default'Size of each star.
colorstring'text-amber-500'Tailwind text-color class applied to filled stars.
ariaLabelstring | nullnullAccessible label for the rating group.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuenumber0Current rating. Two-way bindable with `[(value)]`.
disabledbooleanfalseWhether 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.