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

react-rating

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rating

A rating react component with custom symbols

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
decreased by-40.6%
Maintainers
1
Weekly downloads
 
Created
Source

React Rating

React Rating is a react rating component which supports custom symbols both with inline styles and glyphicons found in popular CSS Toolkits like Fontawesome or Bootstrap.

I intend to port the jQuery bootstrap-rating to a React component.

Demo

See react-rating in action.

Installation

You can install react-rating component using the npm package manager:

npm install --save react-rating

Dependencies

The react-rating component peer depends on the React library.

You can install React using npm too:

npm install --save react

Usage

  1. Require the Rating Component

    var Rating = require('react-rating');
    
  2. Start using it

    With raw javascript:

    React.createElement(Rating)
    

    Or with JSX:

    <Rating />
    

Properties

PropertyTypeDefaultDescription
startnumber1Range starting value (inclusive).
stopnumber5Range stop value (inclusive).
stepnumber1Step increment (negative) or decrement (positive).
initialValuenumberundefinedInitial rate value.
emptystring or objectStyle.emptyInline style object or classes applied to the rating symbols when empty.
filledstringStyle.fullInline style object or classes applied to the rating symbols when filled.
readonlyboolfalseWhether the rating can be modified or not.

Callbacks

CallbackTypeDescription
onChangefunction (rate) {}Called when the rate is changed.

License

MIT License

Keywords

FAQs

Package last updated on 25 Jul 2015

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