Files
hspguard/web/src/components/ui/input.tsx
2025-05-21 19:26:54 +02:00

15 lines
401 B
TypeScript

import type { FC, InputHTMLAttributes } from "react";
type InputProps = InputHTMLAttributes<HTMLInputElement>;
export const Input: FC<InputProps> = ({ className, ...props }) => {
return (
<input
{...props}
className={`w-full border border-gray-300 rounded-md px-3 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 ${
className || ""
}`}
/>
);
};