Review stars
Description
<jp-review-stars> is a component that allows user to select a rating.
Attributes
| Name | Required | Type | Description |
|---|---|---|---|
| value | number | value setter | |
| starsInput | boolean | whether stars are clickable or not | |
| indicator | boolean | whether indicator is displayed or not |
Slots
Used for customization of link's content.
Methods
This component does not have any methods.
Events
rating- triggers when star is clicked
Demo
Live Editor
// import '../static/c/review-stars.wc.js'; <jp-review-stars></jp-review-stars>
Result
Loading...