@rjsf/mui
Version:
Material UI 7 theme, fields and widgets for react-jsonschema-form
28 lines (27 loc) • 1.61 kB
TypeScript
import { BoxProps } from '@mui/material/Box';
import { GridProps } from '@mui/material/Grid';
import { PaperProps } from '@mui/material/Paper';
import { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema, GenericObjectType } from '@rjsf/utils';
/** Properties available for the `rjsfSlotProps` target of the ArrayFieldItemTemplate. */
export interface ArrayFieldItemTemplateMuiProps extends GenericObjectType {
/** RJSF-specific slot props for targeting child elements of the ArrayFieldItemTemplate. */
rjsfSlotProps?: {
/** Props applied to the outermost `Grid` container. */
arrayItemGridContainer?: GridProps;
/** Props applied to the `Grid` item wrapping the item's content. */
arrayItemGridItem?: GridProps;
/** Props applied to the outer `Box` container. */
arrayItemOuterBox?: BoxProps;
/** Props applied to the `Paper` elevation component. */
arrayItemPaper?: PaperProps;
/** Props applied to the inner `Box` containing the actual children. */
arrayItemInnerBox?: BoxProps;
/** Props applied to the `Grid` containing the item's buttons. */
arrayItemToolbarGrid?: GridProps;
};
}
/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
*
* @param props - The `ArrayFieldItemTemplateProps` props for the component
*/
export default function ArrayFieldItemTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldItemTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;