Skip to content
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.

File Input

API Reference

PropTypeDefaultDescription
typestring"text"The HTML input type. Supports all native types including text, email, password, number, file, etc.
placeholderstringPlaceholder text shown when the input is empty.
disabledbooleanfalseWhen true, prevents interaction, reduces opacity, and applies a sunken background.
classNamestringAdditional CSS classes to apply to the input element.