Components/Input

Input

A fully controlled text input with label, helper text, error state, icon support, and full keyboard accessibility. Use with SmartForm for automatic Zod validation.

import { Input } from "@animui/ui"

States

Default, with icons, error, and disabled states.

This field is required.

Props

PropTypeDefaultDescription
labelstringLabel rendered above the input.
placeholderstringPlaceholder text shown when the input is empty.
typestring"text"HTML input type (text, email, password, number, etc.).
valuestringControlled value.
onChange(e: React.ChangeEvent<HTMLInputElement>) => voidChange handler.
errorstringError message shown below the input with red styling.
hintstringHelper text shown below the input in neutral styling.
disabledbooleanfalseDisables the input.
iconReact.ReactNodeIcon rendered inside the input on the left.
rightIconReact.ReactNodeIcon rendered inside the input on the right.
classNamestringAdditional classes on the outer wrapper.
© 2026 Steal Shadow. MIT License.Report an issue