Spaces:
Runtime error
Runtime error
Download src/components/ui/textarea.tsx from Ali-Developments/COURTRIX: direct link, hf CLI and curl.
- Browser
- Download file 740 Bytes
-
https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/components/ui/textarea.tsx
- Command line
-
hf download hf://spaces/Ali-Developments/COURTRIX/src/components/ui/textarea.tsx
-
curl -L -o textarea.tsx https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/components/ui/textarea.tsx
740 Bytes
| import * as React from "react"; | |
| import { cn } from "@/lib/utils"; | |
| const Textarea = React.forwardRef< | |
| HTMLTextAreaElement, | |
| React.ComponentProps<"textarea"> | |
| >(({ className, ...props }, ref) => { | |
| return ( | |
| <textarea | |
| ref={ref} | |
| className={cn( | |
| "flex min-h-[120px] w-full rounded-2xl border border-[var(--border)] bg-white/90 px-4 py-3 text-sm text-[var(--foreground)] outline-none transition-colors placeholder:text-[var(--foreground-soft)] focus:border-[var(--ring)] focus:ring-2 focus:ring-[color:color-mix(in_srgb,var(--ring)_24%,transparent)] disabled:cursor-not-allowed disabled:opacity-60", | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| ); | |
| }); | |
| Textarea.displayName = "Textarea"; | |
| export { Textarea }; | |