Skip to Content
Liquid Glass UI
Components

Textarea

Responsive Apple Liquid Glass multiline text input featuring CSS field-sizing-content auto-growth, 3.5px Apple Blue focus ring, and default / over-glass / glass surface variants.

Fully compatible with the standard shadcn/ui JSX API (<Textarea>), sharing Apple macOS 27 and iOS 27 typography and focus styling with Input, with CSS field-sizing-content auto-height enabled by default:

  • Desktop (>= 768px · macOS 27): 13px text, 12px radius, and 84px default minimum height.
  • Mobile (< 768px · iOS 27): 16px anti-zoom text, 16px radius, and 96px touch minimum height.
  • Default Liquid Glass: Reacts live to --liquid-glass-tint, sharing Regular - Small material and SDF edge refraction with glass Button / Input (falling back cleanly on Safari/Firefox). Pass glass={false} for an opaque field; auto-switches to Over-Glass inside glass surfaces.

Responsive Live Preview

Multiline note composer inside a Liquid Glass card (automatically Over-Glass) that grows as you type with live character count:

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

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/textarea

Sizes, Validation & Disabled States

Supports sm / default / lg sizes, aria-invalid Apple Red error rings, and disabled states:

apple-liquid-ui/preview/textarea-states
MacBook · 16:10

Usage

import { Textarea } from '@/components/ui/textarea';

export function Example() {
  return <Textarea placeholder="Add your notes…" />;
}

Props API

PropTypeDefaultDescription
size'sm' | 'default' | 'lg''default'Size, radius, and adaptive minimum height scale
glassbooleantrueLiquid Glass control material; false renders 100% opaque Bordered equivalent; auto-switches to Over-Glass on glass surfaces
surface'default' | 'over-glass'Auto-detectedSurface context; automatically 'over-glass' inside glass containers, or pass explicitly to override

On this page