Skip to content
GitHub

Rating

Used to show reviews and ratings in a visual format.

VV
Vinicius Vicentini
Tuestday morning at Mercado N.89

Rate your driver

Installation

Usage

Controlled

Use value and onValueChange to control the rating programmatically.

Select the rating 5

State

Readonly

Use the readOnly prop to display a rating without interaction.

Disabled

Use the disabled prop to prevent interaction and show a disabled state.

Examples

Half star

Use allowHalf to allow half-star selections.

Count

Use the count prop to show more or less stars.

Testimonial

Display a read-only rating inside a testimonial card.

“This completely changed our workflow. Fast, reliable, and the team loves it. Would recommend to anyone.”
VV
Vinicius Vicentini
Frontend Developer

Customize size

Use the className prop to set the size of the rating.

Custom icon

Compose the rating with a different icon.

Custom color

Override the filled color with className.

API Reference

Rating

Root component. Forwards props to Ark UI's RatingGroup.Root. Manages value and hover.


For a complete list of props, see the Ark UI documentation.