Ship-It Designv0.0.21

GitHub

Input

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

With Icon#

Loading…

With Trailing#

Loading…

Error#

Loading…

Disabled#

Loading…

Sizes#

Loading…

Props#

Props for Input
PropTypeDefaultDescription
iconReactNode—Element rendered to the left of the input (an `IconGlyph`, `@`, etc.).
trailingReactNode—Element rendered to the right (a unit suffix, kbd hint, clear button).
errorboolean | undefined—When true, swaps the wrapper border to error tone (independent of `aria-invalid`).
widthstring | number | undefined—Pixel width override; otherwise the wrapper grows to fill its container.
size"sm" | "md" | "lg" | null | undefined—
density"comfortable" | "touch" | null | undefined—
tone"err" | "default" | null | undefined—