Skip to Content
Liquid Glass UI
Components

Field

Apple 27 form typography combining labels, controls, descriptions, and validation errors, with vertical, horizontal, and responsive layouts, legends, separators, and Inset Grouped choice cards.

Fully compatible with the standard shadcn/ui JSX API (FieldSet / FieldLegend / FieldGroup / Field / FieldContent / FieldLabel / FieldTitle / FieldDescription / FieldError / FieldSeparator), tuned to Apple 27 form typography:

  • Responsive typography: Labels use 15px (iOS Subheadline) on mobile ↔ 13px on desktop; descriptions and errors use 13px (Footnote) ↔ 11.5px.
  • Semantic colors: Errors consistently use Apple Red (--apple-red), and links inside descriptions inherit the theme accent color.
  • Choice cards: Wrapping a Field inside FieldLabel renders a rounded grouped option card (18px mobile ↔ 12px desktop) with an accent border and soft tint when selected.

Form Field Composition

apple-liquid-ui/preview/field-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/field

Choice Card

apple-liquid-ui/preview/field-choice-card
MacBook · 16:10

Usage

import { Field, FieldDescription, FieldLabel } from '@/components/ui/field';
import { Input } from '@/components/ui/input';

export function Example() {
  return (
    <Field>
      <FieldLabel htmlFor="name">Name</FieldLabel>
      <Input id="name" />
      <FieldDescription>Displayed on your Apple Account.</FieldDescription>
    </Field>
  );
}

Props API

ComponentPropTypeDescription
Fieldorientation'vertical' | 'horizontal' | 'responsive'Field layout (responsive adapts based on FieldGroup container width)
Fielddata-invalidbooleanMarks invalid state, switching labels/errors to Apple Red
FieldLegendvariant'legend' | 'label'Section legend typography scale
FieldErrorerrorsArray<{ message?: string }>Deduplicates and renders validation error messages
FieldSeparatorchildrenReactNodeOptional centered divider label

On this page