Rating
Choose one rating from a one-to-five scale.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
Rating choices | Five buttons | 1–5 stars | Name each available score and show a corresponding star. |
aria-pressed | ARIA Boolean | false for all choices | Distinguish the chosen score. |
States
| State | Trigger | Result |
|---|---|---|
rated | Activate a star. | The stars fill through the chosen score and the output updates. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-surface | color | #ffffff | Surface for controls and cards. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-space | length | 4px | Base unit for gaps and padding. |