2026-08-14 10:49:44 +07:00
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
2026-08-15 17:53:48 +07:00
|
|
|
export function Input({
|
|
|
|
|
className,
|
|
|
|
|
...props
|
|
|
|
|
}: React.InputHTMLAttributes<HTMLInputElement>) {
|
|
|
|
|
return (
|
2026-08-14 10:49:44 +07:00
|
|
|
<input
|
|
|
|
|
className={cn(
|
2026-08-15 17:53:48 +07:00
|
|
|
"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",
|
2026-08-14 10:49:44 +07:00
|
|
|
className,
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
2026-08-15 17:53:48 +07:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|