Menu
Sidera/Components/Input

Input

Text inputs let people enter and edit a single line of content. They make their state — empty, focused, filled, invalid — unmistakable at a glance.

CategoryForms
StatusStable
Version2.0
01Overview

Use an input whenever someone needs to type a short, free-form value. Always pair it with a persistent label, and surface validation inline and immediately — never only on submit.

02States

The stateprop drives the field's meaning: neutral by default, error for invalid input, success for confirmed values.

Enter a valid address

Looks good

03Sizes
04Anatomy
  1. Label — always visible, describing the value expected.
  2. Field — the bordered container holding text and caret.
  3. Helper / error — guidance or validation beneath the field.
05Usage
Do
  • Keep labels permanently visible.
  • Validate inline, as soon as it's useful.
  • Match field width to expected input length.
Don't
  • Rely on placeholder text as the label.
  • Hide errors until form submission.
  • Use one giant field for everything.
06Properties
PropTypeDefault
typetext | email | password | …text
inputSizesm | md | lgmd
statedefault | error | successdefault
labelstring
helperstring
disabledbooleanfalse
07Accessibility
  • Every field has a programmatically associated <label> via htmlFor/id.
  • Helper text is linked with aria-describedby and announced.
  • Invalid fields expose aria-invalid.
  • Focus ring meets 3:1 contrast against the background.