Forms
Input
A single-line text input. Pair it with Field to get the label, hint, and error wiring.
Import
import { Input } from "@mikenotthepope/substrateui"Disabled
With Field
We will never share your email.
Username is already taken.
File Input
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | "text" | The HTML input type. Supports all native types including text, email, password, number, file, etc. |
placeholder | string | — | Placeholder text shown when the input is empty. |
disabled | boolean | false | When true, prevents interaction, reduces opacity, and applies a sunken background. |
className | string | — | Additional CSS classes to apply to the input element. |