UNPKG

@rjsf/semantic-ui

Version:

Semantic UI theme, fields and widgets for react-jsonschema-form

13 lines 586 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Button } from 'semantic-ui-react'; 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(Button, { type: 'submit', primary: true, ...submitButtonProps, children: submitText })); } //# sourceMappingURL=SubmitButton.js.map