Input

Text input fields for user data collection.

Basic Input

<div className="ethio-form-group">
    <label className="ethio-form-label">Full Name</label>
    <input type="text" className="ethio-form-input" placeholder="Enter your name" />
  </div>

Input States

This field is required
<input type="text" className="ethio-form-input" disabled />
  <input type="text" className="ethio-form-input" readOnly />
  <input type="text" className="ethio-form-input" required />

Input Sizes

<input type="text" className="ethio-form-input" style={{ padding: '0.5rem' }} />
  <input type="text" className="ethio-form-input" />
  <input type="text" className="ethio-form-input" style={{ padding: '1rem' }} />

With Icons

๐Ÿ”
๐Ÿ‘๏ธ

API Reference

Class NameDescription
ethio-form-inputBase input field style
ethio-form-labelLabel for input fields
ethio-form-groupContainer for form input and label

Accessibility

  • Always use labels with inputs for screen readers
  • Use appropriate input types (email, password, etc.)
  • Provide clear placeholder text
  • Indicate required fields with visual and textual cues
  • Ensure sufficient color contrast for input text