UNPKG

glass-app-manager

Version:

Informatica's Glass Framework CLI for bootstrapping

24 lines (19 loc) 631 B
// @flow import React from "react"; import { Checkbox as PrettyCheckbox } from "pretty-checkbox-react"; import type { CheckboxProps } from "pretty-checkbox-react/dist/components/Checkbox.js.flow"; Checkbox.defaultProps = { style: "fill", icon: <i className="aicon aicon__check" />, }; export default function Checkbox(props: CheckboxProps) { // $FlowFixMe const { style, icon, ...rest } = props; return ( <PrettyCheckbox style={props.indeterminate ? "default" : style} icon={props.indeterminate ? null : icon} {...rest} /> ); }