@tgfjt/suitcss-components-starratings

2.0.0 • Public • Published

components for star-ratings

provides the star-ratings UI.

Install

  • npm: npm install 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

Package Sidebar

Install

npm i @tgfjt/suitcss-components-starratings

Weekly Downloads

4

Version

2.0.0

License

MIT

Last publish

Collaborators

  • tgfjt