UNPKG

@rjsf/mui

Version:

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

26 lines (25 loc) 1.47 kB
import { BoxProps } from '@mui/material/Box'; import { GridProps } from '@mui/material/Grid'; import { PaperProps } from '@mui/material/Paper'; import { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema, GenericObjectType } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the ArrayFieldTemplate. */ export interface ArrayFieldTemplateMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the ArrayFieldTemplate. */ rjsfSlotProps?: { /** Props applied to the wrapper `Paper` material. */ arrayPaper?: PaperProps; /** Props applied to the primary `Box` container. */ arrayBox?: BoxProps; /** Props applied to the wrapper `Grid` container next to the Add Button. */ arrayAddButtonGridContainer?: GridProps; /** Props applied to the `Grid` item containing the Add Button. */ arrayAddButtonGridItem?: GridProps; /** Props applied to the `Box` containing the Add Button. */ arrayAddButtonBox?: BoxProps; }; } /** The `ArrayFieldTemplate` component is the template used to render all items in an array. * * @param props - The `ArrayFieldTemplateProps` props for the component */ export default function ArrayFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;