Input
Single-line text field with label, hint and error. Heights match Button.
We never share it.
This URL is taken. Try another one.
Add the source to a shadcn project
npx shadcn@latest add https://docs.atomus.io/r/input.jsonOpen in v0Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works
In Figma
Section titled “In Figma”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 |
Textarea
Section titled “Textarea”Multi-line text input.
Variants: 5
| Property | Type / options |
|---|---|
| Label | text |
| Value | text |
| Show hint | boolean (on) |
| State | Default · Focused · Filled · Disabled · Error |
Number input
Section titled “Number input”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 |
Verification code input
Section titled “Verification code input”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 |
Tags input
Section titled “Tags input”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 input
Section titled “Phone input”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 |
Payment input
Section titled “Payment input”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.
Props at a glance
Section titled “Props at a glance”Full types and defaults are in React API at the end of the page.
label— always (Figma: Label); usearia-labelwhen the design hides it.placeholder— an example value, never the label.hint(Figma: Hint);errorreplaces it and turns the borderborder-error(Figma: State=Error).size,iconLeading,iconTrailingand 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.
Design guidance
Section titled “Design guidance”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.
Textarea
Section titled “Textarea”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.
React API
Section titled “React API”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>).