import React, { useId } from 'react'; import styles from './Input.module.css'; export interface InputProps extends Omit, 'id'> { label?: string; hint?: string; error?: string; } export function Input({ label, hint, error, className, ...props }: InputProps) { const id = useId(); return (
{label && ( )} {error ? ( {error} ) : hint ? ( {hint} ) : null}
); }