--- title: "Input" slug: input category: component type: overview version: 20.0.0 tokens: 472 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-input.txt --- # Input _**Input** component is an **Input** field where users can type into_ ## Props | Property | Type | Required | Default | Description | |---|---|---|---|---| | `clearable` | `boolean` | No | undefined | Whether the clear button is displayed. | | `endContent` | `ReactNode` | No | undefined | Decorative content displayed inside the field, after the value and before the action buttons (a unit, an icon, a ghost button). Never part of the input value. | | `i18n` | `Partial` | No | undefined | Internal translations override. | | `invalid` | `boolean` | No | undefined | Whether the component is in error state. | | `loading` | `boolean` | No | undefined | Whether the component is in loading state. | | `locale` | `'fr' | 'de' | 'en' | 'es' | 'it' | 'nl' | 'pl' | 'pt'` | No | undefined | The locale used for the translation of the internal elements. | | `maskOption` | `object` | No | undefined | Masked display options. | | `onClear` | `() => void` | No | undefined | Callback fired when the input value is cleared. | | `startContent` | `ReactNode` | No | undefined | Decorative content displayed inside the field, before the value (a currency symbol, an icon, a fixed scheme such as `https://`). Never part of the input value. | | `type` | `'number' | 'search' | 'time' | 'text' | 'url' | 'email' | 'password'` | No | undefined | The input type. | ## Examples - Default - Disabled - Read Only - Clearable - Loading - Masked - Types - Floating Number - Datalist - In Form Field - Content Adornments - Content Adornment With Button - Domain Availability Search - Login Form - Accessibility Form Field - Accessibility Content - Accessibility I18n ## Documentation pages - [Documentation](./react-components-input--documentation.txt) - [Technical Information](./react-components-input--technical-information.txt) - [Examples](./react-components-input--examples.txt)