2.0.0-rc.2 • Published 6 years ago

material-ui-rating-click v2.0.0-rc.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Material Rating

JavaScript Style Guide Build Status Greenkeeper badge

Example

Installation

Stable channel

npm install material-ui-rating

Pre-release channel

npm install material-ui-rating@next

Please note that @next will only point to pre-releases; to get the latest stable release use @latest instead.

Usage

import { Rating } from 'material-ui-rating'

// ...
render() {
  return(
    <div>
        <Rating
          value={3}
          max={5}
          onChange={(value) => console.log(`Rated with value ${value}`)}
        />
    </div>
  )
}

Material Rating Properties

NameTypeDefaultDescription
classNamestringSets classname for IconButton component.
disabledbooleanfalseDisables the rating and gray it out if set to true.
iconClassNamestringSets classname for icon in IconButton Component.
iconFillednode<ToggleStar color={colors.orange500}/>This is the icon to be used as an icon in value range.
iconFilledRendererfuncOverrides filled icon renderer.
iconHoverednode<ToggleStarBorder color={colors.orange500}/>This is the icon to be used as an hovered icon.
iconHoveredRendererfuncOverrides hovered icon renderer.
itemIconStyleobjectOverride the inline-icon-styles of the item elements.
iconNormalnode<ToggleStarBorder color={colors.grey300}/>This is the icon to be used as an normal icon.
iconNormalRendererfuncOverrides normal icon renderer.
itemStyleobjectOverride the inline-styles of the item elements.
maxnumber5The max value of the rating bar.
onChangefunctionFired when a value is clicked.
readOnlybooleanfalseDon't allow input if set to true.
styleobjectOverride the inline-styles of the root element.
tooltipnodeSets tooltip for icon in IconButton Component.
tooltipPositionstringbottom-centerOverrides tooltip position.
tooltipRendererfuncOverrides tooltip renderer.
tooltipStylesobjectOverrides tooltip styles.
valuenumber0The value of the rating bar.

* required property

License

The files included in this repository are licensed under the MIT license.

2.0.0-rc.2

6 years ago

2.0.0-rc.1

6 years ago

2.0.0-beta.10

6 years ago

2.0.0-beta.9

6 years ago

2.0.0-beta.8

6 years ago

2.0.0-beta.7

6 years ago

2.0.0-beta.6

6 years ago

2.0.0-beta.5

6 years ago

2.0.0-beta.4

6 years ago

2.0.0-beta.3

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

1.4.1

6 years ago