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
- Host: GitHub
- URL: https://github.com/pcvg/zvezdochki
- Owner: pcvg
- License: gpl-3.0
- Created: 2020-02-05T09:15:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-12-04T17:37:50.000Z (6 months ago)
- Last Synced: 2025-12-06T16:56:45.802Z (6 months ago)
- Topics: star, star-rating-components
- Language: JavaScript
- Homepage: https://pcvg.github.io/zvezdochki/
- Size: 1.29 MB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Zvezdochki :star: :star: :star: :star: :star: [](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