An open API service indexing awesome lists of open source software.

https://github.com/pcvg/zvezdochki

Star rating component
https://github.com/pcvg/zvezdochki

star star-rating-components

Last synced: 3 months ago
JSON representation

Star rating component

Awesome Lists containing this project

README

          

# Zvezdochki :star: :star: :star: :star: :star: [![Coverage Status](https://coveralls.io/repos/github/pcvg/zvezdochki/badge.svg?branch=master)](https://coveralls.io/github/pcvg/zvezdochki?branch=master)
(from Russian - _tiny stars_.)

The component for easy creation of star rating components

[DEMO PAGE IS THERE](https://pcvg.github.io/zvezdochki/)

## Getting Started

Getting Started info goes there :-)

### Installing

A step by step instruction

### Usage

`yarn add @savingsunited/zvezdochki`

Or
`npm i @savingsunited/zvezdochki
`

```html










```

```javascript
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](https://pcvg.github.io/zvezdochki/)

### Building

$ npm run build

### Testing

$ npm test

## License

This project is licensed under the GPL-3.0 License - see the [LICENSE](LICENSE) file for details