Skip to main content
VelinStyle v0.8.0
⌂ Home
  1. Docs
  2. Components
  3. Rating

Rating

The <velin-rating> component renders an accessible star rating as a radiogroup. Use the value attribute for the current score. Added in 0.7.5.

Example

<velin-rating value="4" aria-label="Rating"></velin-rating>

Import

Load the bundle once, then use the custom element in your markup:

<script type="module" src="../../dist/velinstyle-components.min.js"></script>
<velin-rating>…</velin-rating>

Theme wählen