Input Component

Comprehensive form input with label, hint, error message, and icon support. WCAG 2.2 Level AA compliant.

Input Sizes

Input Types

With Hint Text

Choose a unique username

Required Field

With Error

Disabled State

Readonly State

Usage Examples

Basic Input

<x-fds.input name="email" type="email" label="Email" />

With Error

<x-fds.input 
    name="password" 
    type="password" 
    label="Password"
    error="Password must be at least 8 characters"
/>

Props API

  • type - text, email, password, number, tel, url, search
  • name - Input name attribute (required)
  • label - Label text
  • hint - Helper text
  • error - Error message
  • required - Boolean
  • disabled - Boolean
  • readonly - Boolean
  • size - sm, md, lg