0.3.0 • Published 4 years ago
lib-kenzie v0.3.0
New Libs
Made with create-react-library
Install
npm install --save capstone
Usage
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