Ship-It Designv0.0.3
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
iconReactNodeElement rendered to the left of the input (an `IconGlyph`, `@`, etc.).
trailingReactNodeElement rendered to the right (a unit suffix, kbd hint, clear button).
errorboolean | undefinedWhen true, swaps the wrapper border to error tone (independent of `aria-invalid`).
widthstring | number | undefinedPixel width override; otherwise the wrapper grows to fill its container.
size"sm" | "md" | "lg" | null | undefined
tone"err" | "default" | null | undefined