Input
A form input component with label, hint, and error message support.
Beispiel:
We'll never share your email
Please enter a valid email address
import { Input } from '@document-writing-tools/kernux-react';
<Input
label="Email Address"
type="email"
required
hint="We'll never share your email"
errorMessage="Please enter a valid email address"
/>Props:
label: string- Required label for the inputhint?: string- Optional hint text displayed below the labelerrorMessage?: string- Error message to display (also adds error styling)- Extends all standard HTML input element props