suitcss-components-starratings
v1.0.0
Published
SUIT CSS component for star ratings
Downloads
4
Readme
components for star-ratings
provides the star-ratings UI.
Install
- npm:
npm install @tgfjt/suitcss-components-starratings
- Download: zip
Available classes
StarRatings
StarRatings-star
Configurable variables
--StarRatings-letterspase
--StarRatings-star
--StarRatings-color-active
--StarRatings-color-inactive
Usage
<div class="StarRatings" aria-label="4 Stars">
<span class="StarRatings-star" star="4"></span>
</div>
<div class="StarRatings" aria-label="2.5 Stars">
<span class="StarRatings-star" star="2.5"></span>
</div>
Test
npm run build-test