Product Logo

Input

A form input component with label, hint, and error message support.

Beispiel:
We'll never share your email
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 input
  • hint?: string - Optional hint text displayed below the label
  • errorMessage?: string - Error message to display (also adds error styling)
  • Extends all standard HTML input element props