Socket
Socket
Sign inDemoInstall

star-rating

Package Overview
Dependencies
58
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    star-rating

Web Component for generate a star rating using Polymer.


Version published
Weekly downloads
42
increased by40%
Maintainers
1
Install size
6.86 MB
Created
Weekly downloads
 

Readme

Source

<star-rating>

Web Component for generate a star rating using Polymer.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130816/polymer.min.js"></script>
    
  2. Import Custom Element:

    <link rel="import" href="src/star-rating.html">
    
  3. Start using it!

    <star-rating></star-rating>
    

Options

AttributeOptionsDefaultDescription
votesnumber0The votes count
votesSumnumber0The votes sum
starCountnumber5The number of star to display
readyOnlytrue, falsefalseMake the stars not interactable

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Check Release list.

License

MIT License © Manoel Quirino

Keywords

FAQs

Last updated on 20 May 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc