JSPM

suitcss-components-starratings

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22825F
  • License MIT

SUIT CSS component for star ratings

Package Exports

  • suitcss-components-starratings

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (suitcss-components-starratings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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