Skip to content

Import

import { Form } from '@dnb/eufemia/extensions/forms'
render(<Form.SubmitButton />)

Description

Form.SubmitButton connects to the Form.Handler 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.Handler.

import { Form } from '@dnb/eufemia/extensions/forms'
render(
<Form.Handler>
<Form.ButtonRow>
<Form.SubmitButton />
</Form.ButtonRow>
</Form.Handler>,
)