Download src/components/ui/textarea-chat.tsx from IOE-IFAD/test: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/spaces/IOE-IFAD/test/resolve/main/src/components/ui/textarea-chat.tsx
- Command line
-
hf download hf://spaces/IOE-IFAD/test/src/components/ui/textarea-chat.tsx
-
curl -L -o textarea-chat.tsx https://huggingface.co/spaces/IOE-IFAD/test/resolve/main/src/components/ui/textarea-chat.tsx
592 Bytes
| import * as React from "react"; | |
| import { cn } from "@/lib/utils"; | |
| const Textarea = React.forwardRef< | |
| HTMLTextAreaElement, | |
| React.ComponentProps<"textarea"> | |
| >(({ className, ...props }, ref) => { | |
| return ( | |
| <textarea | |
| className={cn( | |
| "flex min-h-[32px] max-h-[150px] w-full rounded-md bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 resize-none", | |
| className | |
| )} | |
| ref={ref} | |
| {...props} | |
| /> | |
| ); | |
| }); | |
| Textarea.displayName = "Textarea"; | |
| export { Textarea }; | |