Skip to content
Primitives

Textarea

Themed multi-line text input matching the Input styling.

Motionnone — focus handled by CSS ring

Install

Install Kineto and follow the theme setup once in your app.

bash
npm install kineto
tsx
import { Textarea } from "kineto/textarea";

Preview

tsx
import * as React from "react";

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

export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;

const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
  ({ className, ...props }, ref) => (
    <textarea
      ref={ref}
      className={cn(
        "flex min-h-[5rem] w-full rounded-lg border border-input bg-card px-3.5 py-2.5 text-sm text-foreground shadow-xs transition-colors placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40 disabled:cursor-not-allowed disabled:opacity-50",
        className
      )}
      {...props}
    />
  )
);
Textarea.displayName = "Textarea";

export { Textarea };

src/components/ui/textarea.tsx

Props

PropTypeDefaultDescription
...propsTextareaHTMLAttributes—All native textarea attributes forward.