bloxa

Textarea

FREE

Multi-line input that can grow with its content, with an optional character count.

Playground

Change the props and watch the component and its code update live.

0/280
Props
Code
import { Textarea } from "@/components/ui/textarea";

<Textarea
  autoResize
  maxRows={8}
  showCount
  maxLength={280}
  placeholder="Write something…"
/>

Installation

Terminal
npx @bloxa/cli add textarea
# or: npx shadcn@latest add @bloxa/textarea

Examples

Auto resize

Character count

0/280

API reference

Every component also accepts the props of the element it renders.

Textarea

PropTypeDefaultDescription
autoResizebooleanfalseGrows with its content.
maxRowsnumber10Max rows when auto resizing.
showCountbooleanfalseCounter together with maxLength.