UNPKG

@rjsf/mui

Version:

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

14 lines 704 B
import { jsx as _jsx } from "react/jsx-runtime"; import Box from '@mui/material/Box/index.js'; import Button from '@mui/material/Button/index.js'; import { getSubmitButtonOptions } from '@rjsf/utils'; /** The `SubmitButton` renders a button that represent the `Submit` action on a form */ export default function SubmitButton({ uiSchema }) { const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions(uiSchema); if (norender) { return null; } return (_jsx(Box, { marginTop: 3, children: _jsx(Button, { type: 'submit', variant: 'contained', color: 'primary', ...submitButtonProps, children: submitText }) })); } //# sourceMappingURL=SubmitButton.js.map