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.

A11yrole="img"
Unicode stars
Source ↗Open Docs

Preview

(312)

Usage

Import
import { NbRating } from '@ng-brutalism/ui';
Template
<nb-rating [value]="4.8" [count]="312" />

Values

With review count

(1204)(87)

Custom max

API

InputTypeDefaultDescription
valuenumber0Rating value. Decimal — rounds to nearest whole star.
maxnumber5Total number of stars to render.
countnumber | undefinedundefinedOptional review count shown in parentheses.