Download web/src/components/ui/textarea.tsx from zlcy/study: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/spaces/zlcy/study/resolve/main/web/src/components/ui/textarea.tsx
- Command line
-
hf download hf://spaces/zlcy/study/web/src/components/ui/textarea.tsx
-
curl -L -o textarea.tsx https://huggingface.co/spaces/zlcy/study/resolve/main/web/src/components/ui/textarea.tsx
736 Bytes
| 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 flex min-h-32 w-full rounded-[24px] border bg-white/90 px-4 py-3 text-sm shadow-sm transition-[background-color,border-color,box-shadow] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] outline-none focus-visible:bg-white focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none", | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| export { Textarea }; | |