Skip to content
nexubDesign System
v2.4.0

Components · Interactive

Rating

StableSince v0.0.1

Star rating input, supports controlled and read-only modes.

import { Rating } from '@nexub/react';

Examples

Default

Read-only

Sizes

Props

Props
PropTypeDefaultDescription
valuenumber—The controlled rating value.
maxnumber5Maximum number of stars.
readOnlybooleanfalsePrevents user interaction when true.
size'sm' | 'md' | 'lg'—Size of the star icons.
onValueChange(value: number) => void—Callback fired when the user selects a new rating.

On iOS & Android