v0.1 public beta early access on GitHub
Home / Components / input

InputiOS

Labeled field with focus ring, error shake and success check.

$ npx lumioui add input
import { Input } from "@/components/ui/input/input";
Inputinput.tsx
input/input.tsx open

Live preview — the real component, driven by the props below.

Props11
label? string Visible label above the field.
helper? string Helper text below the field.
error? string Error message — turns the field red, shakes it, and announces to screen readers.
success? boolean Shows an animated success check on the right edge.
leftIcon? React.ReactNode Icon node rendered inside the left edge of the field.
rightIcon? React.ReactNode Icon node rendered inside the right edge (hidden while the success check shows).
reserveHelperLine? boolean Reserve one helper line even when empty — prevents layout shift on error.
size? "sm" | "md" Field density — "sm" for toolbars and dense forms, "md" (default) for full-size fields.
className? string NativeWind classes for the input element.
containerClassName? string Classes for the outer wrapper.
glass? boolean Liquid-glass field — capsule material instead of the flat fill.
Input — Checkoutcheckout.tsx
input/variants/checkout.tsx open

Labeled field with focus ring, error shake and success check.

Input — Glassglass.tsx
input/variants/glass.tsx open

Labeled field with focus ring, error shake and success check.