Components
Rating
Rating
A read-only star rating.
Basic Rating
Basic rating
Half
Empty
Including label
<.rating rating={4} total={5} />
<.rating rating={2.5} total={5} />
<.rating rating={0} total={5} />
<.rating include_label rating={3.3} total={5} />
Properties
Defaults are indicated in bold. Required fields have * before the label. Hover over the name for docs.
Name | Type | Options/Default |
---|---|---|
rating | :integer | - |
round_to_nearest_half | :boolean | "true", "false" |
star_class | :string | - |
total | :integer | "5", "any number" |
include_label | :boolean | "true", "false" |
label_class | :string | - |
[all additional properties] | Unused. |