@cmk/fe_utils
Version:
frontend utility library
15 lines (13 loc) • 702 B
TypeScript
import { CheckboxProps as MCBProps, TooltipProps, FormControlLabelProps, FormHelperTextProps, TypographyProps } from '@mui/material';
import { GenericInputFieldProps } from './types';
import { ChangeEvent } from 'react';
export type CheckboxProps = GenericInputFieldProps<'bool'> & Omit<MCBProps, 'value' | 'onChange'> & {
onChangeCompleted?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
slotProps?: {
tooltip?: TooltipProps;
formControlLabel?: FormControlLabelProps;
typography?: TypographyProps;
formHelperText?: FormHelperTextProps;
};
};
export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;