UNPKG

@rjsf/mui

Version:

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

16 lines (15 loc) 950 B
import { TypographyProps } from '@mui/material/Typography'; import { DescriptionFieldProps, FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the DescriptionField. */ export interface DescriptionFieldMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the DescriptionField. */ rjsfSlotProps?: { /** Props applied to the `Typography` element used for the description. */ descTypography?: TypographyProps; }; } /** The `DescriptionField` is the template to use to render the description of a field * * @param props - The `DescriptionFieldProps` for this component */ export default function DescriptionField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: DescriptionFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;