Skip to main content

FieldSet

The FieldSet component groups related fields under the same heading. The legend assigns a caption to the FieldSet to improve accessibility.

Import

import { FieldSet } from '@dynatrace/strato-components-preview/forms';

Use cases

CodeSandbox

Use multiple fieldsets

It is possible to nest several <FieldSet> components inside each other. To do so, you can simply put it inside any other Fieldset component.

CodeSandbox

Disable a fieldset

To disable a FieldSet and all controls grouped by it, you can simply add the disabled prop.

CodeSandbox
Still have questions?
Find answers in the Dynatrace Community