Skip to main content

Rating

Inputs & Controls

Rating

Star rating input + display component.

Usage

Capture feedback scores or show aggregated ratings.

Highlights

  • Fractional display and animation
  • Custom icon + color tokens

When to use it

  • Users review content with 1-5 style ratings.
  • Inline analytics require quick scanning.

Examples

Default

Preview (Web)
import { Rating } from 'react-native-molecules/components/Rating';

export default function Example() {
  return <Rating count={5} />;
}
PropTypeDefaultDescription
countnumber | undefined
valuenumber | undefined
defaultValuenumber | undefined
onChange((value: number) => void) | undefined
readonlyboolean | undefined
disabledboolean | undefined
iconNamestring | undefined
iconType"material-community" | "feather" | undefined
activeIconNamestring | undefined
activeIconType"material-community" | "feather" | undefined
sizenumber | undefined
colorstring | undefined
activeColorstring | undefined
iconContainerStyleViewStyle | undefined
iconPropsOmit<IconProps, "ref" | "name" | "type" | "color"> | undefined
showTooltipsboolean | undefined
tooltipPropsTooltipProps | undefined
Defined in react-native-molecules/components/Rating