← All Components

Input

Text input field supporting all standard HTML input types.

Text

Email

Password

Number

Date

Time

URL

Telephone

Search

Color

File

Disabled

Error State

Props

PropTypeDescription
type"text" | "email" | "password" | "number" | "date" | "time" | "url" | "tel" | "search" | "color" | "file" | ...HTML input type
placeholderstringPlaceholder text
disabledbooleanDisable interaction
aria-invalidbooleanShow error styling
classNamestringAdditional classes

Usage

<Input type="text" placeholder="Name" /> <Input type="email" placeholder="Email" /> <Input type="password" placeholder="Password" /> <Input type="number" min={0} max={100} /> <Input type="date" /> <Input type="file" /> <Input disabled placeholder="Disabled" /> <Input aria-invalid defaultValue="bad" />