Skip to content
Primitives

Input

A styled text input with optional label, helper text, error state, and leading/trailing adornments.

Preview:
1280px

Keep this secret.

Username is already taken.

Props

PropTypeDefaultDescription
labelstring-Label displayed above the input.
valuestring-Controlled input value.
onChange(e: ChangeEvent) => void-Change handler (web gets event, native gets string).
errorstring-Error message shown below; applies error styling.
helperTextstring-Helper text shown below the input.
prefixIconReactNode-Icon element inside the left edge.
suffixIconReactNode-Icon element inside the right edge.
disabledbooleanfalseDisables the input.
type'text' | 'password' | 'email' | 'number''text'Input type.