Rating
Interactive rating component for capturing user feedback and displaying scores.
Installation
Install the component
templui add rating
Add the JavaScript to your layout
@rating.Script()
Call this template in your base layout file (e.g., in the <head> section).
Examples
With Label
Styles
Precision (Read-Only)
Max Values
Form
API Reference
Required parameter
Hover for description
Rating
Main rating component container.
Name | Type | Default |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rating.Group
Container for grouping rating items.
Name | Type | Default |
---|---|---|
|
|
|
|
|
|
|
|
|
Rating.Item
Individual rating item (star, heart, emoji).
Name | Type | Default |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|