Rating
The Rating component generates a rating scale.
Last updated
The Rating component generates a rating scale.
Last updated
defaultValue
number
The value that the rating scale will start at -- note that the value will override the defaultValue
3
disabled
boolean
disables and grays out component
false
emptyIcon
string
icon of rating that is not selected, example if rating is 4/5 then the emptyIcon
is the fifth icon
star_border
emptyIconColor
string
Hex color of the emptyIcon
''
emptyIconVariant
IconVariant
sets the theme of the component IconVariant.Outlined
,
IconVariant.Round
,
IconVariant.Sharp
, and
IconVariant.TwoTone
undefined
icon
string
icon of rating that is selected, example if rating is 4/5 then the Icon
is the first four icons
star
iconColor
string
Hex color of the Icon
var(--purplePrimary)
iconVariant
IconVariant
sets the theme of the component IconVariant.Outlined
,
IconVariant.Round
,
IconVariant.Sharp
, and
IconVariant.TwoTone
undefined
max
number
Max rating, set number of icons displayed
5
name
string
html name attribute
rating
onChange
Callback function( error, number, whisper) => {}
calls function when rating is changed
undefine
precision
number
the increment that the rating can increase or decrease
0.5
readOnly
boolean
enables/disables the ability to change the value
false
size
IconSize
size of component:
IconSize.Small
,
IconSize.Medium
,
IconSize.Large
,
IconSize.ExtraLarge
IconSize.Medium
value
number
value of rating
undefined