Import
Basic Usage
Props
The rating value.
The default value. Use when the component is not controlled.
Maximum rating.
The minimum increment value change allowed.
The size of the component.
If
true, the component is disabled.Removes all hover effects and pointer events.
If
true, only the selected icon will be highlighted.The icon to display. Defaults to
<Star fontSize="inherit" />.The icon to display when empty. Defaults to
<StarBorder fontSize="inherit" />.The label read when the rating input is empty.
Accepts a function which returns a string value that provides a user-friendly name for the current value of the rating. This is important for screen reader users. Default returns
${value || '0'} Star${value !== 1 ? 's' : ''}.Callback fired when the value changes.
Callback function that is fired when the hover state changes.
The name attribute of the radio
input elements. This input name should be unique within the page.The system prop that allows defining system overrides as well as additional CSS styles.