first commit
This commit is contained in:
24
resources/js/Components/ui/textarea.tsx
Normal file
24
resources/js/Components/ui/textarea.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
||||
return (
|
||||
<textarea
|
||||
data-slot="textarea"
|
||||
className={cn(
|
||||
"flex min-h-16 w-full rounded-md px-3 py-2 text-base transition-[color,box-shadow] outline-none",
|
||||
"border-2 border-grey-3 bg-grey-5",
|
||||
"text-grey-0 placeholder:text-grey-3",
|
||||
"focus-visible:border-[var(--primary-main)] focus-visible:ring-[var(--primary-main)]/20 focus-visible:ring-[3px]",
|
||||
"aria-invalid:border-destructive aria-invalid:ring-destructive/20",
|
||||
"disabled:border-grey-4 disabled:bg-background-light-grey disabled:text-grey-2 disabled:cursor-not-allowed disabled:pointer-events-none",
|
||||
"resize-none md:text-sm",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export { Textarea };
|
||||
Reference in New Issue
Block a user