BoundCheckbox

BoundCheckbox binds a MUI Checkbox component to the data object found in the nearest DataObjectProvider. Usage is just like the MUI Checkbox, except you must give a field name in the field property instead of passing value/onChange properties.

API

import { CheckboxProps } from "@mui/material";
export declare type BoundCheckboxProps = CheckboxProps & {
  field: string;
};

export declare function BoundCheckbox(props: BoundCheckboxProps): JSX.Element;

Last updated

Was this helpful?