kosori

Textarea

A native textarea element.

Textarea wraps a native <textarea> in Base UI's Field.Control so it composes with Field, accepts size and unstyled, and marks both parts with data-slot.

Installation

npx shadcn@latest add @kosori/textarea

Example

textarea-example.tsx
textarea-example
import { Textarea } from '@/components/ui/textarea';

const TextareaExample = () => <Textarea placeholder='Type your message here' />;

export default TextareaExample;

Usage

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

const TextareaDemo = () => <Textarea placeholder='Type your message here' />;

On this page