Rating

Rating is a component used to allow users to provide ratings.

Usage

import { Rating } from "@yamada-ui/react"
<Rating />

Change Size

Change Color Scheme

Set Default Value

To set a default value, assign a number to defaultValue.

Change Number of Items

To change the number of items, assign a number to count.

Set Decimals

To set decimals, assign a number to fractions.

For example, to set 0.25, set 4.

Highlight Selected Only

To highlight only the selected rating, set highlightSelectedOnly to true.

Change Color

To change the color, assign a string or function to color.

Disable

To disable, set disabled to true.

Read-Only

To make it read-only, set readOnly to true.

Customize Icons

To customize icons, assign ReactNode or a function to emptyIcon and filledIcon.

Control

Props

Accessibility

Currently, this section is being updated due to the migration of v2.