<baht-rating>
Star rating. Controlled; click the current value to clear.
Basic
Events (name)
<baht-rating value="3"></baht-rating>Read-only, custom max
Events (name)
<baht-rating value="7" max="10" readonly="true"></baht-rating>| Name | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Current rating |
max | number | 5 | Star count |
readonly | boolean | false | Display only |
label | string | 'Rating' | Accessible name for the radiogroup. |
Events
Section titled “Events”| Event | detail | Description |
|---|---|---|
name | CustomEvent | |
baht-change | { value } | User picked a rating |