A professional data entry field with floating-label-inspired hierarchy and 'Sophisticated Muted' error states.
Small, bold uppercase label providing clear context for the expected data.
The 8px rounded container with Indigo focus rings and 2px border strokes.
Supporting standard input values, placeholders, and semantic error messages.
// ExperimentInput.tsx
const ExperimentInput = ({ label, error, ...props }) => (
<div className="space-y-1.5">
<label className="text-xs font-bold uppercase tracking-wider">{label}</label>
<input className="w-full px-4 py-2 border-2 rounded-lg focus:border-indigo-600" {...props} />
{error && <p className="text-xs text-rose-600">{error}</p>}
</div>
);