import React, { CSSProperties } from 'react'; import './Checkbox.scss'; import classNames from 'classnames'; export interface Props { /** * Optional side label */ label?: string; /** * Optional disable attribute */ disabled?: boolean; /** *Optional checked attribute to prefill */ checked?: boolean; /** * Value as a prop if any */ value?: string; /** * Optional onChange function */ onChange?: (event: React.ChangeEvent) => void; style?: CSSProperties; /** * for partial checked checkbox */ partial?: boolean; } const Checkbox = (props: Props) => { return (
{props.label && ( )}
); }; export default Checkbox;