Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
FormsReact Native

Field group

Compose related native controls under one label, description, required state, and validation message.

Public APILumenFieldGroupReact Native

Native example

Use Field group

Use when several controls share one label or validation message. Do not use it to duplicate a label already owned by one Text field or Textarea.

View verified React Native runtime capture
Field group rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenFieldGroup
  label="Notification channels"
  description="Choose every channel the team should use."
  required
>
  <NotificationControls />
</LumenFieldGroup>

Reference

Public API

The primary shared and platform-specific options exposed by LumenFieldGroup.

APIValues or typeDefaultDescription
labelStringRequiredNames the grouped field controls.
descriptionString?nilAdds shared supporting guidance.
errorMessageString?nilAdds a shared validation message.
requiredBooleanfalseShows that the grouped answer is required.
contentNative contentRequiredProvides independently accessible controls.

Native behavior

Design and accessibility

When to use it

Use when several controls share one label or validation message. Do not use it to duplicate a label already owned by one Text field or Textarea.

Accessibility

The label and messages provide context without merging the semantics of contained native controls or their actions.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives