lib-kenzie
v0.3.0
Published
Made with create-react-library
Downloads
15
Keywords
Readme
New Libs
Made with create-react-library
Install
npm install --save capstoneUsage
Rate
API
| Property | Description | Default |
| ---------- | -------------------------------------------------------- | ------- |
| gading | The current value. | - |
| color? | Stars color (can be hexa). | - |
| style? | The custom style object. | - |
| disable? | If read only, unable to interact. | false |
| onClick? | Function caled wen changing value. Returns the new value | - |
Example
import React from 'react';
import { Rate } from 'capstone';
import 'capstone/dist/index.css';
const Example = () => {
return (
<Rate
gading={5}
color="#fe0"
disable
onClick={(value) => console.log(value)}
/>
);
};License
MIT © Capstone Group
Cassiano [Augusto] () [Carol] () [Willian] () [Alex] () [Eduardo] ()
