UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

21 lines (20 loc) 931 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UseSubmitReturnProperties = exports.UseSubmitParameters = void 0; const UseSubmitReturnProperties = exports.UseSubmitReturnProperties = { submit: { doc: "Triggers form submit. Runs validation and calls the form's onSubmit when valid. Use when the submit button is rendered outside Form.Element (e.g. in a modal footer). Returns a Promise that resolves with the submit result or undefined.", type: '() => Promise<EventStateObject | undefined>', status: 'required' } }; const UseSubmitParameters = exports.UseSubmitParameters = { id: { doc: 'Optional id (string, function, object or React Context) to link to a Form.Handler outside the component tree. When provided, the hook can be used without being inside Form.Handler.', type: 'SharedStateId', status: 'optional' } }; //# sourceMappingURL=useSubmitDocs.js.map