UNPKG

@rjsf/mui

Version:

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

23 lines (22 loc) 1.39 kB
import { GridProps } from '@mui/material/Grid'; import { GenericObjectType, FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTemplateProps } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the WrapIfAdditionalTemplate. */ export interface WrapIfAdditionalTemplateMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the WrapIfAdditionalTemplate. */ rjsfSlotProps?: { /** Props applied to the outermost `Grid` container. */ wrapGridContainer?: GridProps; /** Props applied to the `Grid` item containing the key TextField. */ wrapKeyGridItem?: GridProps; /** Props applied to the `Grid` item containing the field children. */ wrapChildrenGridItem?: GridProps; /** Props applied to the `Grid` item containing the remove button. */ wrapRemoveButtonGridItem?: GridProps; }; } /** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are * part of an `additionalProperties` part of a schema. * * @param props - The `WrapIfAdditionalProps` for this component */ export default function WrapIfAdditionalTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WrapIfAdditionalTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;