EEnterUI
DocsComponentsThemesDonation
Get Started
      • Label
      • Field
      • Fieldset
      • Form
      • ValidationSummary
EnterUIDocsInputsForm ControlsForm StructureField
InputsUpdated 6 May 2026

Field

Composable form structure for label, control, description, and error text.

Field defines how EnterUI handles composable form structure for label, control, description, and error text, including default structure, accessible states, and token-driven styling.

#Default usage

FormField

Use FormField for the common label plus control pattern.

Used for public package names.

Code
<FormField description="Used for public package names." label="Package" required>
  <Input defaultValue="@froggdesign/enter-ui-react" />
</FormField>

#Import

Code
import {
  Field,
  FieldDescription,
  FieldError,
  FormField,
  Input,
} from "@froggdesign/enter-ui-react";

#Patterns

Invalid field

Invalid state is applied to the wrapper and the control.

Visible in package metadata.

Use a stable semantic tag.

#Accessibility

FieldError uses role="alert". Pair labels with controls and connect descriptions or errors with native aria attributes when forms need explicit associations.

#API

  • Field supports invalid.
  • FormField accepts label, description, error, required, optional, and labelProps.
  • FieldDescription and FieldError extend paragraph props.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousLabel
NextFieldset

On this page

  1. Default usage
  2. Import
  3. Patterns
  4. Accessibility
  5. API
  6. Styling