MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / Textarea

Function Textarea

components/ui/textarea.tsx:5–21  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"textarea">)

Source from the content-addressed store, hash-verified

3import { cn } from "@/lib/utils"
4
5function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
6 return (
7 <textarea
8 data-slot="textarea"
9 className={cn(
10 "min-h-24 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-sm text-[var(--color-text-strong)] transition-all duration-150",
11 "placeholder:text-[var(--color-text-weak)]",
12 "focus-visible:border-[var(--color-bg-strong)] focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[var(--color-bg-interactive)]",
13 "dark:focus-visible:border-[var(--color-bg-interactive)] dark:focus-visible:ring-0",
14 "disabled:cursor-not-allowed disabled:opacity-50",
15 "resize-y",
16 className
17 )}
18 {...props}
19 />
20 )
21}
22
23export { Textarea }

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected