A shadcn-style textarea component built with Ark UI primitives.

Write a short bio. Maximum 500 characters.

Installation

npx shadcn@latest add @ark-cn/textarea

Usage

import * as Textarea from "@/components/ui/textarea"

Read exported parts in src/components/ui/textarea.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Write a short bio. Maximum 500 characters.

Editable Textarea

Ark UI editable with a textarea.

Field Textarea

Write a short bio. Maximum 500 characters.

API reference

This component mirrors the upstream Ark UI primitive. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

Textarea

PropTypeDescription
size?"sm" | "default" | "lg" | numberMin-height/padding tier.
unstyled?booleanSkips the bordered wrapper chrome.

See the ARK UI documentation for the full API.