UNPKG

@rjsf/mui

Version:

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

23 lines (22 loc) 1.29 kB
import { CheckboxProps } from '@mui/material/Checkbox'; import { FormControlLabelProps } from '@mui/material/FormControlLabel'; import { FormGroupProps } from '@mui/material/FormGroup'; import { FormContextType, GenericObjectType, WidgetProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the CheckboxesWidget. */ export interface CheckboxesWidgetMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the CheckboxesWidget. */ rjsfSlotProps?: { /** Props applied to the `FormGroup` container. */ formGroup?: FormGroupProps; /** Props applied to the individual `Checkbox` components. */ checkbox?: CheckboxProps; /** Props applied to the `FormControlLabel` components wrapping each checkbox. */ formControlLabel?: FormControlLabelProps; }; } /** The `CheckboxesWidget` is a widget for rendering checkbox groups. * It is typically used to represent an array of enums. * * @param props - The `WidgetProps` for this component */ export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;