11 lines
458 B
TypeScript
11 lines
458 B
TypeScript
import type { InputHTMLAttributes } from "react";
|
|
|
|
export function Input({ className = "", ...props }: InputHTMLAttributes<HTMLInputElement>) {
|
|
return (
|
|
<input
|
|
className={`w-full rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm shadow-sm transition focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 ${className}`}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|