@romua1d/star-rating-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.27 • Public • Published

Star Rating JavaScript Library

Simple Kit for organizing your star rating module
npm version Build Status Publish Status

Links

DOCs | NPM | GitHub

🚀 How to use

  1. npm install @romua1d/star-rating -D or yarn add @romua1d/star-rating -D
  2. connect library to your project

npm

import StarRating from '@romua1d/star-rating-js';
const StarRatingInstance = new StarRating(element);
...

self-host/cdn

<link href="https://cdn.jsdelivr.net/npm/@romua1d/star-rating-js@latest/build/index.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/@romua1d/star-rating-js@latest/build/index.min.js"></script>

const StarRating = window.StarRating.default;
const StarRatingInstance = new StarRating(document.getElementById('someId'));
...

/@romua1d/star-rating-js/

    Package Sidebar

    Install

    npm i @romua1d/star-rating-js

    Weekly Downloads

    15

    Version

    0.0.27

    License

    MIT

    Unpacked Size

    306 kB

    Total Files

    24

    Last publish

    Collaborators

    • romua1d