Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
material-ui-rating
Advanced tools
Stable channel
npm install material-ui-rating@next
import Rating from 'material-ui-rating'
<Rating
value={3}
max={5}
onChange={(value) => console.log(`Rated with value ${value}`)}
/>
Name | Type | Default | Description |
---|---|---|---|
classes* | object | Useful to extend the style applied to components. The accepted keys are listed below. | |
component | elementType | div | The component used for the root node. Either a string to use a DOM element or a component. |
disabled | bool | false | Disables the rating and gray it out if set to true. |
disableHover | bool | false | Disable hover effects if set to true. |
iconFilled | node | This is the icon to be used as an icon in value range. | |
iconFilledRenderer | func | Overrides filled icon renderer. | |
iconHoveredRenderer | func | Overrides hovered icon renderer. | |
iconHovered | node | This is the icon to be used as an hovered icon. | |
iconNormal | node | This is the icon to be used as an normal icon. | |
iconNormalRenderer | func | Overrides normal icon renderer. | |
max | number | 5 | The max value of the rating bar. |
onChange | func | Fired when a value is clicked. | |
readOnly | bool | false | Don't allow input if set to true. |
value | number | 0 | The value of the rating bar. |
* required property
You can override all the class names injected by Material-UI-Rating thanks to the classes
property. This property accepts the following keys:
root
- Applied to the root div
elementiconButton
- Applied to the IconButton componenticon
- Applied to the SvgIcon componentdisabled
- Applied to the IconButton component when disabled prop is true
readOnly
- Applied to the IconButton component when readOnly prop is true
Following Material-UI's conventions, this package respects theme.direction.rtl
, so right-to-left support works out-of-the-box.
The files included in this repository are licensed under the MIT license.
FAQs
Material style rating
The npm package material-ui-rating receives a total of 354 weekly downloads. As such, material-ui-rating popularity was classified as not popular.
We found that material-ui-rating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.