Skip to content

tgfjt/suitcss-components-starratings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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