PromucFlow_constructor/app/client/src/editorComponents/CheckboxComponent.tsx

21 lines
513 B
TypeScript
Raw Normal View History

2019-09-05 17:47:50 +00:00
import * as React from "react";
import { ComponentProps } from "./BaseComponent";
import { Checkbox } from "@blueprintjs/core";
2019-09-09 09:08:54 +00:00
class CheckboxComponent extends React.Component<CheckboxComponentProps> {
2019-03-21 12:10:32 +00:00
render() {
return (
<Checkbox
label={this.props.label}
defaultIndeterminate={this.props.defaultCheckedState}
/>
2019-09-05 17:47:50 +00:00
);
2019-03-21 12:10:32 +00:00
}
}
2019-09-09 09:08:54 +00:00
export interface CheckboxComponentProps extends ComponentProps {
label: string;
defaultCheckedState: boolean;
2019-03-21 12:10:32 +00:00
}
2019-09-05 17:47:50 +00:00
export default CheckboxComponent;