# Input > A text field at the 40px form height, with error and password modes. Source: https://native.shellui.dev/docs/components/form/input ## Installation ```bash shellui-native add input ``` **Platforms:** MAUI · Avalonia. ## Usage ### Basic **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=input-basic) ### Password, error and read-only **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=input-states) ## MAUI and Avalonia - `Keyboard` (the soft keyboard on phones) is MAUI only. - `MaxLength`: no limit by default on both; on Avalonia `0` means no limit. ## API | Property | Type | Default | Description | |---|---|---|---| | `Text` | `string` | — | Entered text. Two-way bindable. | | `Placeholder` | `string` | — | Hint shown while empty. | | `IsPassword` | `bool` | `false` | Masks the text. | | `HasError` | `bool` | `false` | Shows the destructive border and ring. | | `IsReadOnly` | `bool` | `false` | Shows the text without allowing edits. | | `MaxLength` | `int` | No limit (MAUI) · `0` (no limit) (Avalonia) | Maximum number of characters. | | `Keyboard` | `Keyboard` | `Default` | Soft keyboard to show on touch devices. MAUI only. | | Event | Arguments | Description | |---|---|---| | `TextChanged` | `TextChangedEventArgs` | The text changed. | | `Completed` | — | Every slot is filled (or Enter in a text field). |