Back to Component Library
form React 19 + TypeScript
Input
Styled text input with support for icons, error messages, and dark mode borders.
$npx forgeui add input
Variant:
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | undefined | Top input label string. |
| error | string | undefined | Validation error message. |
| icon | ReactNode | undefined | Leading input icon. |
Accessibility Standards
Associated aria-describedby for error labels, aria-invalid attributes.