Socket
Socket
Sign inDemoInstall

cc-rate

Package Overview
Dependencies
13
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cc-rate

React Star Rate Component with custom Array of characters


Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Install size
2.63 MB
Created
Weekly downloads
 

Readme

Source

rc-rate


React Rate Component

NPM version build status Test coverage gemnasium deps npm download

Screenshots

Development

npm install
npm start

Example

http://localhost:8000/examples/

online example: http://react-component.github.io/rate/

install

rc-rate

Usage

var Rate = require('rc-rate');
var React = require('react');
React.render(<Rate />, container);

API

props

nametypedefaultdescription
countnumber5star numbers
valuenumbercontrolled value
defaultValuenumber0initial value
allowHalfboolfalsesupport half star
allowClearbooltruereset when click again
styleobject{}
onChangefunction(value: Number)`onChange` will be triggered when click.
onHoverChangefunction(value: Number)`onHoverChange` will be triggered when hover on stars.
characterReactNodeThe each character of rate
disabledboolfalse

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-rate is released under the MIT license.

Keywords

FAQs

Last updated on 24 Oct 2018

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