RatingOwnProps

Properties

Link copied to clipboard
abstract external var classes: RatingClasses?

Override or extend the styles applied to the component.

Link copied to clipboard
abstract external var defaultValue: Any?

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

Link copied to clipboard
abstract external var disabled: Boolean?

If true, the component is disabled.

Link copied to clipboard
abstract external var emptyIcon: ReactNode?

The icon to display when empty.

Link copied to clipboard
abstract external var emptyLabelText: ReactNode?

The label read when the rating input is empty.

Link copied to clipboard
abstract external 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
abstract external var highlightSelectedOnly: Boolean?

If true, only the selected icon will be highlighted.

Link copied to clipboard
abstract external var icon: ReactNode?

The icon to display.

Link copied to clipboard
abstract external var key: Key?
Link copied to clipboard
abstract external var max: Double?

Maximum rating.

Link copied to clipboard
abstract external 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 external var onChange: (event: SyntheticEvent<*, *>, value: Number?) -> Unit?

Callback fired when the value changes.

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

Callback function that is fired when the hover state changes.

Link copied to clipboard
abstract external var precision: Double?

The minimum increment value change allowed.

Link copied to clipboard
abstract external var readOnly: Boolean?

Removes all hover effects and pointer events.

Link copied to clipboard
abstract external var size: Size?

The size of the component.

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

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

Link copied to clipboard
abstract external var value: Number?

The rating value.

Functions

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