Skip to Content
Forms & Inputs@hacline/ui/field

Field

A form field container built on @ui-sdk/react/field that automatically connects labels, descriptions, native validation errors, and FieldSet group disabling.

Imports

import {
  Field,
  FieldDescription,
  FieldError,
  FieldGroup,
  FieldLabel,
  FieldLegend,
  FieldSet,
} from "@/components/ui/hacline/components/field";

Basic Usage

Field automatically wires id, for, and aria-describedby relationships between the inner control, FieldLabel, and FieldDescription. When the control has required, the label automatically displays a required indicator.

Used as the unique path for your public profile.

Validation & Error Messages

Combine native HTML validation constraints (required, type="email", pattern) with the match prop on FieldError to display custom error messages on failed submission and clear them automatically once input becomes valid.

Used for build notifications and security alerts.

Field Grouping (FieldSet)

Use FieldSet, FieldLegend, and FieldGroup to organize related fields and disable them together at the group level with disabled.

Project basics

Fields inside a FieldSet share semantic grouping and can be disabled together.

Props

Field

Prop

Type

FieldError

Prop

Type