0.1.0 • Published 5 years ago

@talixo/rating v0.1.0

Weekly downloads
16
License
MIT
Repository
github
Last release
5 years ago

Talixo Rating

UI component which represents rating.

How to install

Package is available as @talixo/rating in NPM registry, so you can use it in your project using npm install @talixo/rating --save or yarn add @talixo/rating.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/icon: ^0.1.1
  • @talixo/shared: ^0.1.0
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0

These packages are required by @talixo/rating, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
valuenumber0Rating to show, between 0 and 1
sizenumber5Number of visible icons
iconstring'star'Icon name to use inside (from @talixo/icon)
keyboardbooltrueShould handle keyboard events for change?
onChangefunctionn/aHandler for changing rating by user

Changelog

  • 0.1.0 - initial version