Skip to Content
DocumentationInput

Input

A text input component for forms and user data entry with built-in styling and accessibility features.

Examples

Text input

Default (static label)

Floating label

Helper text, disabled, and invalid

Optional
Disabled state
Username is required

With icons

Medium size (md)

Medium size with helper text, disabled, and invalid

Optional
Disabled state
Username is required

Number input

Default (static label)

Floating label

Helper text, disabled, and invalid

Must be 0 or greater
Disabled state
Score must be 0 or greater

With icons

USD

Medium size

Password input

With helper text

Must be at least 8 characters

Invalid password

Password must be at least 8 characters

API

Input

Text input element.

PropertyTypeDefaultDescription
type”text” | “email” | “numeric” | “password""text”Input variant. “email” shows a default Mail icon on the left. For “text” and “email”, setting invalid shows a warning triangle icon on the right. “numeric” renders a number input with stepper buttons. “password” renders a password field with lock icon and show/hide toggle.
size”md” | “lg""lg”Input height and icon/label scale. “md” uses 40px height, 20px icons, 14px placeholder label, and smaller numeric steppers.
minnumber-When type is numeric, sets the minimum allowed value. Standard HTML attribute.
iconLeftReact.ReactElement-Icon or element at the start of the input. For type “numeric”, only the left slot is used (steppers are on the right).
iconRightReact.ReactElement-Icon or element at the end of the input. Not used for type “numeric” or “password”. For type “text” and “email”, when invalid is true the built-in warning icon replaces any custom iconRight.
disabledbooleanfalseDisables the input and steppers (numeric). Standard HTML attribute.
invalidbooleanfalseWhen true, enables error state styling. For type “text” and “email”, this also shows a warning triangle icon on the right.

InputWrapper

Layout wrapper for the input and related elements (label/helper text).

PropertyTypeDefaultDescription
classNamestring-Additional CSS classes to apply to the wrapper.

InputField

Relative wrapper for InputLabel + Input. Use when combining a floating label with InputText so the label stays vertically centered.

PropertyTypeDefaultDescription
classNamestring-Additional CSS classes to apply to the field container.

InputLabel

Floating label (like Select’s SelectLabel). Use inside InputWrapper; with InputText, wrap label and input in InputField. Use a placeholder with the same text as the label (e.g. placeholder="Email").

PropertyTypeDefaultDescription
htmlForstring-Associates the label with the input id.

InputText

Helper or validation text below the input. Accepts standard HTML attributes for a span (e.g. className).

PropertyTypeDefaultDescription
invalidbooleanfalseWhen true, uses error colors for the text.
classNamestring-Additional CSS classes.
Last updated on