UNPKG

@rjsf/mui

Version:

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

16 lines (15 loc) 923 B
import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, GenericObjectType } from '@rjsf/utils'; import { FormHelperTextProps } from '@mui/material/FormHelperText'; /** Properties available for the `rjsfSlotProps` target of the FieldHelpTemplate. */ export interface FieldHelpTemplateMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the FieldHelpTemplate. */ rjsfSlotProps?: { /** Props applied to the `FormHelperText` used for help text. */ helpFormHelperText?: FormHelperTextProps; }; } /** The `FieldHelpTemplate` component renders any help desired for a field * * @param props - The `FieldHelpProps` to be rendered */ export default function FieldHelpTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldHelpProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;