UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

shadcn/ui/Textarea

Text effects
1 of 2
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

2 versions·2 librariesCompare all textareas →

  • shadcn/ui
  • 8bitcn

Textarea

npx shadcn@latest add https://ui.shadcn.com/r/styles/new-york-v4/textarea.json
Open in v0 Docs Repo
Library
shadcn/ui
License
MIT
Stack
React · Tailwind CSS
Packages
cn
Size
18 lines
Demo
From shadcn/ui

Code

registry/new-york-v4/ui/textarea.tsx

import * as React from "react"
import { cn } from "cn"

function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
  return (
    <textarea
      data-slot="textarea"
      className={cn(
        "flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
        className
      )}
      {...props}
    />
  )
}

export { Textarea }

More like this

Ai Prompt Input

SmoothUI·Inputs & forms

Input

shadcn/ui·Inputs & forms

Command

shadcn/ui·Overlays

Alert

SmoothUI·Feedback & loaders

Marking Menu

Kokonut UI·Overlays

Accordion

SmoothUI·Data display

Dot Pattern

Magic UI·Backgrounds

Grid

Eldora UI·Other

Progressive Blur

Magic UI·Feedback & loaders

Terminal

Eldora UI·Media & 3D

Skeleton

shadcn/ui·Feedback & loaders

Carousel

shadcn/ui·Media & 3D

Sidebar

shadcn/ui·Navigation

Carousel

HextaUI·Media & 3D

Toolbar Dynamic

Motion Primitives·Navigation