UNPKG

@rjsf/mui

Version:

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

17 lines (16 loc) 947 B
import { BoxProps } from '@mui/material/Box'; import { ButtonProps } from '@mui/material/Button'; import { GenericObjectType, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the SubmitButton. */ export interface SubmitButtonMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the SubmitButton. */ rjsfSlotProps?: { /** Props applied to the `Box` wrapper. */ submitBox?: BoxProps; /** Props applied to the `Button` element. */ submitButton?: ButtonProps; }; } /** The `SubmitButton` renders a button that represent the `Submit` action on a form */ export default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema }: SubmitButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;