RatingOwnProps

Properties

Link copied to clipboard
abstract var classes: RatingClasses?

Override or extend the styles applied to the component.

Link copied to clipboard
abstract var defaultValue: Any?

The default value. Use when the component is not controlled.

Link copied to clipboard
abstract var disabled: Boolean?

If true, the component is disabled.

Link copied to clipboard
abstract var emptyIcon: ReactNode?

The icon to display when empty.

Link copied to clipboard
abstract var emptyLabelText: ReactNode?

The label read when the rating input is empty.

Link copied to clipboard
abstract var getLabelText: (value: Number) -> String?

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.

Link copied to clipboard

If true, only the selected icon will be highlighted.

Link copied to clipboard
abstract var icon: ReactNode?

The icon to display.

Link copied to clipboard

The component containing the icon.

Link copied to clipboard
abstract var key: Key?
Link copied to clipboard
abstract var max: Number?

Maximum rating.

Link copied to clipboard
abstract var name: String?

The name attribute of the radio input elements. This input name should be unique within the page. Being unique within a form is insufficient since the name is used to generate IDs.

Link copied to clipboard
abstract var onChange: (event: SyntheticEvent<*, *>, value: Number?) -> Unit?

Callback fired when the value changes.

Link copied to clipboard
abstract var onChangeActive: (event: SyntheticEvent<*, *>, value: Number) -> Unit?

Callback function that is fired when the hover state changes.

Link copied to clipboard
abstract var precision: Number?

The minimum increment value change allowed.

Link copied to clipboard
abstract var readOnly: Boolean?

Removes all hover effects and pointer events.

Link copied to clipboard
abstract var size: Size?

The size of the component.

Link copied to clipboard
abstract var slotProps: RatingSlotProps?
Link copied to clipboard
abstract var slots: RatingSlots?
Link copied to clipboard
abstract override var sx: SxProps<Theme>?

The system prop that allows defining system overrides as well as additional CSS styles.

Link copied to clipboard
abstract var value: Number?

The rating value.

Functions

Link copied to clipboard
open inline operator fun Props?.unaryPlus()