Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@savingsunited/zvezdochki

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@savingsunited/zvezdochki

The component for easy creation of star rating components

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Zvezdochki :star: :star: :star: :star: :star: Coverage Status

(from Russian - tiny stars.)

The component for easy creation of star rating components

DEMO PAGE IS THERE

Getting Started

Getting Started info goes there :-)

Installing

A step by step instruction

Usage

yarn add @savingsunited/zvezdochki

Or npm i @savingsunited/zvezdochki

<div class="star-rating star-rating--basic" data-ratingValue="4">
  <ul class="star-rating__list">
    <li data-star="5"></li>
    <li data-star="4"></li>
    <li data-star="3"></li>
    <li data-star="2"></li>
    <li data-star="1"></li>
  </ul>
</div>
import Zvezdochki from "@savingsunited/zvezdochki";
require("@savingsunited/zvezdochki/dist/Zvezdochki.5e2a2fb4.css"); //If you need css

let ratingEl = document.querySelector(".star-rating");

new Zvezdochki(ratingEl);

ratingEl.addEventListener("vote", ev => {
  console.log(ev.detail.star) //star number
});

More Examples and Documentation you can find on the DEMO Page

Building

yarn build

Testing

yarn test

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details

FAQs

Package last updated on 22 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc