Y2K UI

Textarea

Multiline text input with thick navy outline and flat pastel focus styling.

textarea-demo.app

Installation

terminal.sh
npx y2kui@latest add textarea

Usage

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

export function Example() {
  return <Textarea placeholder="Type your message..." />;
}

Props

PropTypeDefaultDescription
variant'default' | 'blue' | 'pink' | 'mint' | 'lemon''default'Pastel background style.
resize'none' | 'y' | 'x' | 'both''y'CSS resize behavior.
placeholderstringPlaceholder text.
disabledbooleanfalseDisable the textarea.
classNamestringAdditional Tailwind classes.

Examples

Pastel fill

textarea-pastel.app

Disabled

textarea-disabled.app

On this page