jengacore.shadcn registry · Tailwind v4 · Radix and Base UI
Components
shadcn, restyled · @jengacore/textarea

Textarea

Multi-line field matching Input.

Install

terminal
npx shadcn@latest add @jengacore/textarea

Without the namespace configured: npx shadcn@latest add https://ui.jengacore.com/r/<new-york-v4|base-nova>/textarea.json

Registry dependencies

Source

components/ui/textarea.tsx
import * as React from "react"

import { cn } from "@/lib/utils"

/** Multi-line text: same border, fill and focus as Input. Used for decision reasons and case notes. */
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
  return (
    <textarea
      data-slot="textarea"
      className={cn(
        "flex field-sizing-content min-h-20 w-full rounded-md border border-input bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground",
        "transition-[border-color,box-shadow] duration-fast ease-jc outline-none",
        "focus-field",
        "disabled:cursor-not-allowed disabled:opacity-50",
        className
      )}
      {...props}
    />
  )
}

export { Textarea }