11 lines
446 B
TypeScript
11 lines
446 B
TypeScript
import type { TextareaHTMLAttributes } from "react";
|
|
|
|
export function Textarea({ className = "", ...props }: TextareaHTMLAttributes<HTMLTextAreaElement>) {
|
|
return (
|
|
<textarea
|
|
suppressHydrationWarning
|
|
className={`w-full resize-y rounded-md border border-border bg-white p-3 font-mono text-sm text-ink placeholder:text-muted focus:outline-2 focus:outline-offset-2 focus:outline-accent ${className}`}
|
|
{...props}
|
|
/>
|
|
);
|
|
} |