Neo-Brutalist Angular Rating
Rating
A read-only star rating display. Accepts a decimal value and rounds to the nearest whole star. Optionally shows a review count. Fully accessible via role="img" with an auto-generated aria-label.
Preview
Usage
Import
import { NbRating } from '@ng-brutalism/ui';Template
<nb-rating [value]="4.8" [count]="312" />Values
With review count
Custom max
API
| Input | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | Rating value. Decimal — rounds to nearest whole star. |
| max | number | 5 | Total number of stars to render. |
| count | number | undefined | undefined | Optional review count shown in parentheses. |