UNPKG

@rjsf/mui

Version:

Material UI 7 theme, fields and widgets for react-jsonschema-form

20 lines (19 loc) 1.12 kB
import { CheckboxProps } from '@mui/material/Checkbox'; import { FormControlLabelProps } from '@mui/material/FormControlLabel'; import { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the CheckboxWidget. */ export interface CheckboxWidgetMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the CheckboxWidget. */ rjsfSlotProps?: { /** Props applied to the individual `Checkbox` component. */ checkbox?: CheckboxProps; /** Props applied to the `FormControlLabel` component wrapping the checkbox. */ formControlLabel?: FormControlLabelProps; }; } /** The `CheckBoxWidget` is a widget for rendering boolean properties. * It is typically used to represent a boolean. * * @param props - The `WidgetProps` for this component */ export default function CheckboxWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;