Faber UI
Components

Textarea

A multi-line text input that grows with its content.

Textarea uses field-sizing-content so it expands automatically as the user types, without a resize handle.

Installation

Terminal
pnpm dlx shadcn@latest add https://faber-ui.vercel.app/r/textarea.json

Usage

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

export default function Example() {
  return <Textarea placeholder="Write a message..." />;
}

Examples

Default

States

API

The Textarea accepts all props of a native <textarea> element.

Changelog

  1. v0.3.0Input, Textarea, NativeSelect, CommandInput and ComboboxChipsInput use 16px text on small screens so iOS Safari no longer zooms the page on focus.patch
Full Textarea history

Last updated on

On this page