Getting Started
Foundations
Components
Search for a command to run...
The Field component system provides a flexible, accessible way to build form interfaces with proper labeling, help text, error messaging, and validation feedback. It supports multiple layout orientations (vertical, horizontal, and responsive) through composable subcomponents.
This component integrates with form validation libraries and automatically handles accessibility attributes like aria-invalid, aria-describedby, and proper label associations. Use Field components to create consistent, accessible form experiences throughout your application.
We'll never share your email with anyone else.
import { Field } from "@strongtie/design-system/field"This module exports the following components:
FieldFieldSetFieldLegendFieldGroupFieldContentFieldLabelFieldTitleFieldDescriptionFieldSeparatorFieldError<Field>| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "vertical" | "horizontal" | "responsive" | null | - |
<FieldLegend>| Prop | Type | Default | Description |
|---|---|---|---|
variant | label | legend | legend |
<FieldError>| Prop | Type | Default | Description |
|---|---|---|---|
errors | ({ message?: string; })[] | undefined | - |
We'll never share your email with anyone else.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
fieldEnsure proper accessibility attributes are added when implementing this component.