RatingProps
Represents the properties of [Rating](% slug api_inputs_rating %) component.
Name | Type | Default | Description |
---|---|---|---|
ariaDescribedBy? |
|
Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message. | |
ariaLabelledBy? |
|
Identifies the element(s) which will label the component. | |
children? |
|
Determines the children nodes. | |
className? |
|
Sets additional classes to the Rating. | |
defaultValue? |
|
Sets the default value of the Rating, used in uncontrolled mode. See example | |
dir? |
|
Determines the Rating direction | |
disabled? |
|
Sets the | |
half? |
|
Determines if value represents half icon -> true, or not -> false. See example | |
icon? |
|
Sets custom Rating icon, by default - star. See example | |
id? |
|
Sets the | |
item? |
|
Represents the rendered Rating item. | |
label? |
|
Determines if the Rating has a label and is it a custom one. | |
max? |
|
Sets the max possible icon value or star value in the main use-case. | |
min? |
|
Sets the min possible icon value or star value in the main use-case. | |
name? |
|
Specifies the This property is part of the FormComponentProps interface. | |
onBlur? |
|
Triggered after | |
onChange? |
|
Triggered after value change. Gets outside access to the target element, the new value and the event type. | |
onClick? |
|
Triggered after | |
onFocus? |
|
Triggered after | |
onKeyDown? |
|
Triggered after | |
precision? |
|
Determines the precision of the Rating. By default set to | |
readonly? |
|
Sets the | |
required? |
|
Specifies if This property is part of the FormComponentProps interface. | |
selection? |
|
Determines the selection mode. By default set to | |
step? |
|
Sets the step value between the min and max value. | |
style? |
|
Sets additional CSS styles to the Rating. | |
svgIcon? |
|
Sets custom Rating SVG icon. | |
svgIconOutline? |
|
Sets custom Rating SVG icon. | |
tabIndex? |
|
Sets the | |
valid? |
|
Overrides the validity state of the component.
If This property is part of the FormComponentProps interface. | |
validationMessage? |
|
Controls the form error message of the component. If set to an empty string, no error will be thrown. This property is part of the FormComponentProps interface. | |
validityStyles? |
|
If set to This property is part of the FormComponentProps interface. | |
value? |
|
Sets the current value of the Rating, used in controlled mode. See example |