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):13pxtext,12pxradius, and84pxdefault minimum height. - Mobile (
< 768px· iOS 27):16pxanti-zoom text,16pxradius, and96pxtouch minimum height. - Default Liquid Glass: Reacts live to
--liquid-glass-tint, sharingRegular - Smallmaterial and SDF edge refraction with glassButton/Input(falling back cleanly on Safari/Firefox). Passglass={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:
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/textareaSizes, Validation & Disabled States
Supports sm / default / lg sizes, aria-invalid Apple Red error rings, and disabled states:
Usage
import { Textarea } from '@/components/ui/textarea';
export function Example() {
return <Textarea placeholder="Add your notes…" />;
}Props API
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'default' | 'lg' | 'default' | Size, radius, and adaptive minimum height scale |
glass | boolean | true | Liquid Glass control material; false renders 100% opaque Bordered equivalent; auto-switches to Over-Glass on glass surfaces |
surface | 'default' | 'over-glass' | Auto-detected | Surface context; automatically 'over-glass' inside glass containers, or pass explicitly to override |
Tabs
Liquid Glass Tabs, Segmented Control, and Floating Tab Bar built to Apple iOS 27 and macOS 27 guidelines, featuring press-and-drag liquid lens magnification and automatic responsive adaptation.
Toast
Apple macOS 27 top-right and iOS 27 top-center Liquid Glass notification banners supporting stacked hover expansion, swipe dismissal, and semantic status icons.