mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
issue title + description editing
This commit is contained in:
25
packages/frontend/src/components/ui/textarea.tsx
Normal file
25
packages/frontend/src/components/ui/textarea.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import type * 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 dark:bg-input/30 w-full min-w-0 border bg-transparent",
|
||||
"transition-[color,box-shadow]",
|
||||
"focus-visible:border-ring",
|
||||
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
||||
"field-sizing-content min-h-2 px-3 py-2 text-base md:text-sm resize-none",
|
||||
"placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground",
|
||||
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
||||
"outline-none",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export { Textarea };
|
||||
Reference in New Issue
Block a user