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

Add the source to a shadcn project

npx shadcn@latest add https://docs.atomus.io/r/input.jsonOpen in v0

Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works

From guidelines/components/input-select.md · Open in Figma: Input

Properties, variants and anatomy of the Figma components. React props use the same names.

Text input. Label position Outside, Inside (floating) or Notched. Sizes 32/40/48 match Buttons.

Variants: 42

Property Type / options
Label text
Show label boolean (on)
Hint text
Show hint boolean (on)
Label position Outside · Inside · Notched
Size sm · md · lg
State Default · Hover · Focused · Filled · Disabled · Error

Multi-line text input.

Variants: 5

Property Type / options
Label text
Value text
Show hint boolean (on)
State Default · Focused · Filled · Disabled · Error

Number counter with decrease/increase buttons.

Variants: 9

Property Type / options
Show label boolean (on)
Value text
Show hint boolean (on)
Size sm · md · lg
State Default · Focused · Disabled

One-time code (OTP) input, 4 or 6 digits.

Variants: 24

Property Type / options
Show label boolean (on)
Show hint boolean (on)
Digits 4 · 6
Size sm · md · lg
State Default · Filled · Focused · Error

Input that turns entries into removable tags.

Variants: 6

Property Type / options
Show label boolean (on)
Show hint boolean (on)
Size sm · md · lg
State Default · Focused

Phone number with country selector (flag + dial code).

Variants: 9

Property Type / options
Show label boolean (on)
Show hint boolean (on)
Size sm · md · lg
State Default · Focused · Error

Card number, expiry and CVC in one field with the card brand mark.

Variants: 9

Property Type / options
Show label boolean (on)
Show hint boolean (on)
Size sm · md · lg
State Default · Focused · Error
import { Input } from '@stanvision/atomus-react';
<Input label="Email" placeholder="you@company.com" 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.

Full types and defaults are in React API at the end of the page.

  • 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.

Do

  • Write errors that say how to fix it: “Enter a date after today”.

Don’t

  • Don’t rely on the red border alone — the error text is required.

From the Figma guidelines.

Do

  • Always show a label; use Inside or Notched when space is tight.
  • Use the hint for format help and Error for validation.
  • Match the size to the buttons in the same form.

Forbidden

  • Never use placeholder text as the label.
  • Never show an error before the user has typed.
  • Never clear the user’s value after an error.

Do

  • Use for multi-line text; show a character count when there is a limit.

Forbidden

  • Never use Textarea for single-line values — use Input.

Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/input-select.md.

Use only these props; anything else is not part of the API.

import { Input } from '@stanvision/atomus-react'; — source: react/src/components/Input.tsx

Prop Type Default Description
label string — Figma: Label (+ Show label). Always give one; use aria-label when it is hidden.
hint string — Figma: Hint (+ Show hint)
error string — Figma: State=Error — replaces the hint and turns the border red
size 'sm' | 'md' | 'lg' 'md' Figma: Size — sm 32 · md 40 · lg 48, matching Button
iconLeading ReactNode — Icon before the text.
iconTrailing ReactNode — Icon after the text.

Also accepts every native <input> attribute (name, value, checked, onChange, required …), except size, which is replaced above, and ref (forwarded to the <input>).