# Input > Text input field component with variant support and two-way binding. Source: https://shellui.dev/docs/v0.3/components/form/input The Input component provides a styled text input field with support for all standard HTML input types, two-way binding, and focus/blur events. ## Installation ```bash shellui add input ``` ## Usage ### Basic ```razor
``` ### Input Types ```razor
``` ### With Label ```razor
``` ### Two-way Binding ```razor
@code { private string email = ""; } ``` ### ValueChanged Callback ```razor
@code { private string email = ""; private void HandleEmailChanged(string value) { email = value; } } ``` ### Disabled and ReadOnly ```razor
``` ### Custom Class ```razor
@@
``` ## API Reference | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `Variant` | `InputVariant` | `Default` | Visual style variant | | `Type` | `string` | `"text"` | HTML input type attribute | | `Value` | `string` | `""` | Current input value | | `Placeholder` | `string` | `""` | Placeholder text | | `Disabled` | `bool` | `false` | Disables the input | | `ReadOnly` | `bool` | `false` | Makes input read-only | | `Class` | `string?` | `null` | Additional CSS classes | | `ValueChanged` | `EventCallback` | — | Fires when value changes | | `OnFocus` | `EventCallback` | — | Fires when input gains focus | | `OnBlur` | `EventCallback` | — | Fires when input loses focus | ## Accessibility - Proper label association via `For` / `Id` attributes - ARIA attributes for validation states - Keyboard navigation support - Screen reader compatible