Skip to components
DEVELOPER REFERENCE · v4.0.0

Rating API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Rating4 props1 callbacks0 methods

Props4

Rating props
NameTypeDescription
valueRequirednumberValue to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.
maxOptionalnumber | undefinedMaximum permitted value or upper bound for the control.
labelRequiredstringLabel content or accessible name for the component, as rendered by this control.
disabledOptionalboolean | undefinedDisables user interaction with the control.

Events and callbacks1

Rating events and callbacks
NameTypeDescription
onChangeOptional
((value: number) => void) | undefinedInspect type
Receives the new value when the user changes the control. Update the corresponding value prop for controlled use.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.