Description
Form.SubmitButton
connects to the DataContext.Provider to submit the active state of the internal DataContext, triggering onSubmit
.
The default button type is type="submit"
, ready to be used with the Form.Element
Demos
Standard text
Code Editor
<Form.Handler data={{ foo: 'bar', }} onSubmit={(event) => console.log('onSubmit', event)} > <Form.SubmitButton /> </Form.Handler>