# Input

Inputs let users enter and edit text.

![](/files/-MGxGqRQ5Z7LOUAmCEzq)

```jsx
import { Input } from '../components'

<Input
    placeholder={'Place your Text'}
/>
```

Input can be dark on the bright screen.

```jsx
import { Input } from '../components'

<Input
    dark
    placeholder={'Place your Text'}
/>
```

Input can be disabled:

```jsx
import { Input } from '../components/'

<Input
    disabled
    placeholder={'Place your Text'}
/>
```

You can make input bordered:

```jsx
import { Input } from '../components/'

<Input
    type="bordered"
    placeholder={'Place your Text'}
/>
```

You can make the input with a caption:

```jsx
import { Input } from '../components/'

<Input
    caption="Simple caption text"
    placeholder={'Place your Text'}
/>
```

You can make the input with a label:

```jsx
import { Input } from '../components/'

<Input
    label="Simple label text"
    placeholder={'Place your Text'}
/>
```

## Properties

| Name        | Type                                       | Description                                                                                                             |
| ----------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| placeholder | `string`                                   | A string to be displayed when there is no value.                                                                        |
| dark        | `bool`                                     | Makes input dark.                                                                                                       |
| disabled    | `bool`                                     | Makes input disabled.                                                                                                   |
| label       | `ReactText \| (TextProps) => ReactElement` | String, number or a function component to render above the input field. If it is a function, expected to return a Text. |
| caption     | `ReactText \| (TextProps) => ReactElement` | String, number or a function component to render below the input field. If it is a function, expected to return a Text. |
| value       | `string`                                   | A value displayed in input field.                                                                                       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reactnativestarter.com/components/input.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
