MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Textarea

Function Textarea

packages/react/src/components/textarea.tsx:5–22  ·  view source on GitHub ↗
({
  className,
  maxRows,
  ...props
}: React.ComponentProps<"textarea"> & { maxRows?: number })

Source from the content-addressed store, hash-verified

3import { cn } from "../lib/utils";
4
5function Textarea({
6 className,
7 maxRows,
8 ...props
9}: React.ComponentProps<"textarea"> & { maxRows?: number }) {
10 return (
11 // oxlint-disable-next-line react/forbid-elements
12 <textarea
13 data-slot="textarea"
14 className={cn(
15 "flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
16 className,
17 )}
18 {...props}
19 style={{ maxHeight: maxRows ? `${maxRows * 1.5}rem` : undefined }}
20 />
21 );
22}
23
24export { Textarea };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected