Skip to content

Input

Single-line text field with label, hint and error. Heights match Button.

We never share it.

This URL is taken. Try another one.

InputLive · light and dark follow the theme switch
import { Input } from '@stanvision/atomus-react';
<Input label="Email" placeholder="[email protected]" hint="We never share it." />
<Input label="URL" error="This URL is taken." />

Single-line text field with label, hint and error. Heights match Button: sm 32 · md 40 · lg 48.

  • label — always (Figma: Label); use aria-label when the design hides it.
  • placeholder — an example value, never the label.
  • hint (Figma: Hint); error replaces it and turns the border border-error (Figma: State=Error).
  • size, iconLeading, iconTrailing and any native input attribute.
  • Write errors that say how to fix it: “Enter a date after today”.
  • Don’t rely on the red border alone — the error text is required.

Properties, variants and anatomy for the Figma component are on the Figma reference page. Prop names in React match the Figma property names.