Input

A text input component for forms and user data entry with built-in styling and accessibility features.

Usage

Add the input class to supported <input> elements. Inputs inside a form or field container also receive the same styling automatically for common text-like input types.

Use native HTML attributes for behavior: disabled for disabled inputs, required for required fields, and aria-invalid="true" for invalid state styling.

<input class="input" type="email" placeholder="Email">

Examples

Basic

Field

Use field with a label and description to create an accessible field.

Enter your email address.

Field Group

Disabled

Invalid

Please enter a valid email address.

File

Inline

Grid

Required

Badge

Input Group

Use the Input Group patterns to add icons, text, or buttons inside an input.

Button Group

Use Button Group when an input should be grouped with adjacent buttons.

Form

This is your public display name.

RTL

Inputs support right-to-left layouts through native browser direction handling. Add dir="rtl" to the input, field, or an ancestor.

مفتاح API الخاص بك مشفر ومخزن بأمان.