Rating
Star rating widget. Datastar signal holds current value. Read-only variant available.
primitive rating
Controls
max
readonly
Current props
max: ""readonly:
Usage
// declare signal in ancestor
ui.Signals("{stars:0}")
primitive.Rating(primitive.RatingProps{Signal: "stars", Max: 5})All combinations (3)
Enum controls only · bool and text use defaults
Props
| Name | Type | Options | Default |
|---|---|---|---|
max | enum | 3, 5, 10 | 5 |
readonly | bool | — | false |