Rating - Skeleton

  1. components
  2. rating
  3. react

Rating

Create an visual representation of a numeric range.

Count

Custom Icon

Allow Half

Disabled

Read-Only

RTL

API Reference

Rating

Property Type Description
base
string
Set root base classes
gap
string
Set root gap classes
classes
string
Set root arbitrary classes
controlBase
string
Set control base classes
controlGap
string
Set control gap classes
controlClasses
string
Set control arbitrary classes
labelBase
string
Set label base classes
labelClasses
string
Set label arbitrary classes
itemBase
string
Set item base classes
itemClasses
string
Set item arbitrary classes
stateInteractive
string
Set item interactive state classes
stateReadOnly
string
Set item read-only state classes
stateDisabled
string
Set item disabled state classes
iconEmpty
ReactNode
Set the empty icon node
iconHalf
ReactNode
Set the half icon node
iconFull
ReactNode
Set the full icon node
label
ReactNode
Set the label node
onValueChange
Set the onValueChange callback
ids
The ids of the elements in the rating. Useful for composition.
translations
Specifies the localized strings that identifies the accessibility elements and their states
count
number
The total number of ratings.
Default: 5
name
string
The name attribute of the rating element (used in forms).
form
string
The associate form of the underlying input element.
value
number
The current rating value.
readOnly
boolean
Whether the rating is readonly.
disabled
boolean
Whether the rating is disabled.
required
boolean
Whether the rating is required.
allowHalf
boolean
Whether to allow half stars.
autoFocus
boolean
Whether to autofocus the rating.
onHoverChange
Function to be called when the rating value is hovered.
dir
"ltr" | "rtl"
The document's text/writing direction.
Default: "ltr"
getRootNode
A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.