Skip to content

BbRating

Collect a whole-number rating as a radio group or display an existing score.

import { BbRating } from 'bitboss-ui';

On this page

Use it for

Use BbRating for a small whole-number judgement such as an order review.

Use something else when

Pass Through

Hover or tap a part to outline it. Toggles flip loading, errors and warnings when the component has them — only parts highlight.

Shown under the label — durable context.Press Delete or Backspace to clear rating.
Guidance while the control is focused.

Validate an order review

Name the fieldset with legend, seed a number | null model, and clear validation as soon as the user picks a value.

Rate your orderOrder #10482, delivered on 8 July 2026.Press Delete or Backspace to clear rating.

The stars are native radio inputs: Tab enters the group once and arrow keys change the value. name is optional in v3 unless a native post needs a known key.

Clear and choose the scale

clearable adds the only path back to unrated: click the selected star again or press Delete or Backspace.

Rate your orderPress Delete or Backspace to clear rating.
Click the selected star again, or press Delete, to go back to unrated.

3 of 5

The cleared value is null, never 0. Explain the gesture in a persistent hint. stars changes both the number of choices and maximum value; beyond about ten, prefer labels or a slider.

Display an existing score

Use readonly for a score people may inspect; unlike disabled, it stays in the tab order.

Aeris Ergonomic Task Chair
Average rating for Aeris Ergonomic Task Chair4.6 · 128 reviews

There are no half stars. Round for the glyphs and print the precise decimal and sample size in the append slot.

Glyph and layout

The icon slot replaces only the glyph and receives size as a resolved CSS length string.

How much do you love this release?

The glyph is decoration — the accessible name stays on the fieldset.

Pass that size through without arithmetic. input-position now works in v3; remove v2 alignment workarounds. The removed color prop moves to the local --color custom property.