Skip to content

FieldGroup

Description

With FieldGroup you can group several Field-components and its error states to compose one single component.

It watches the states of its children and uses internally Field.FieldBlock to display one state at a time.

import { FieldGroup } from '@dnb/eufemia/extensions/forms'

Demos

Label only (default layout)

Input features goes here
<FieldGroup label="Label text">Input features goes here</FieldGroup>

With info

For your information
<FieldGroup label="Label text" info="For your information">
<Layout.Row>
<Field.String />
<Field.Number />
</Layout.Row>
</FieldGroup>