diff options
author | polwex <polwex@sortug.com> | 2025-05-15 12:17:54 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-05-15 12:17:54 +0700 |
commit | 1ae274a658d0a705b698a8873c286ec73403b1a6 (patch) | |
tree | 12d4d77404a3b3862fbc949a581fe598a0d8c152 /src/components/ui | |
parent | ee2352b5268a1f33c4db72237a7c5171f0c1efbc (diff) |
m
Diffstat (limited to 'src/components/ui')
-rw-r--r-- | src/components/ui/textarea.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx new file mode 100644 index 0000000..7f21b5e --- /dev/null +++ b/src/components/ui/textarea.tsx @@ -0,0 +1,18 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +function Textarea({ className, ...props }: React.ComponentProps<"textarea">) { + return ( + <textarea + data-slot="textarea" + className={cn( + "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", + className + )} + {...props} + /> + ) +} + +export { Textarea } |