Files
GMW/services/frontend/src/components/primitives/input.tsx
T

36 lines
906 B
TypeScript
Raw Normal View History

import { cn } from "@/lib/utils";
export function Input({
className,
...props
}: React.InputHTMLAttributes<HTMLInputElement>) {
return (
<input
className={cn(
"h-10 w-full rounded-[11px] bg-white/5 border border-hairline px-3.5 text-sm text-ink",
"placeholder:text-ink-faint transition-colors",
"focus:outline-none focus:border-signal/50 focus:bg-white/8",
className,
)}
{...props}
/>
);
}
export function Textarea({
className,
...props
}: React.TextareaHTMLAttributes<HTMLTextAreaElement>) {
return (
<textarea
className={cn(
"w-full rounded-[11px] bg-white/5 border border-hairline px-3.5 py-2.5 text-sm text-ink",
"placeholder:text-ink-faint transition-colors resize-none",
"focus:outline-none focus:border-signal/50 focus:bg-white/8",
className,
)}
{...props}
/>
);
}