phoenix-components-library
Version:
Component library for Phoenix Frontend Projects.
28 lines (22 loc) • 497 B
JSX
import React from "react";
import { Checkbox } from "antd";
import "./CheckBox-antd.css";
import "./CheckBox.css";
const defaultProps = {
checked: false,
disabled: false
};
const CheckBox = props => {
const onCheckboxChange = e => props.checkboxChange(e);
return (
<Checkbox
onChange={onCheckboxChange}
checked={props.checked}
disabled={props.disabled}
>
{props.label}
</Checkbox>
);
};
CheckBox.defaultProps = defaultProps;
export { CheckBox };