import React from 'react' interface InputProps extends React.InputHTMLAttributes { label: string id: string error?: string } const Input: React.FC = ({ label, id, error, className, ...props }) => { const baseClasses = 'mt-1 block w-full px-3 py-2 bg-white border border-slate-300 rounded-md text-sm shadow-sm placeholder-slate-400 focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500 disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none' const errorClasses = 'border-red-500 text-red-600 focus:border-red-500 focus:ring-red-500' return (
{error && ( )}
) } export default Input