Skip to content

Import

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

Description

Form.SubmitIndicator lets you show an indicator while async form operations are performed.

import { Form } from '@dnb/eufemia/extensions/forms'
render(<Form.SubmitIndicator state="pending" />)

Integration

The indicator is implemented by default in the Form.SubmitButton and FieldBlock label. It will be displayed when the onSubmit event handler on the Form.Handler component is an async function. You can find some examples down below.