A TypeScript safe, customizable, animated checkmark for React.
npm i react-typescript-checkmark
`
Using this component:
`javascript
import Checkmark from 'react-typescript-checkmark';
const ExampleComponent = () => {
return (
size='large'
backgroundColor='blue'
animationDuration={0.8}
explosion={1.2}
/>
);
};
`
API:
Component props:
size: the size of the checkmark
visible: a boolean value that toggles visibility
backgroundColor: accepts string that is passed to styling as CSS color (#00000, blue, etc)
checkColor: accepts string that is passed to styling as CSS color (#00000, blue, etc)
checkThickness: accepts a number that determines the thickness of the checkmark
animationDuration: the time in seconds for the animation to draw
explosion`: how big the checkmark expands or 'explodes' as part of the animation