# TextInput

## Props

### [caretColor](https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color)

Sets the color of the insertion caret, the visible marker where the next character typed will be inserted. The caret is typically a thin vertical line that flashes to help make it more noticeable.

#### **Type:** `ColorPropType`

#### Conversion

```diff
// HTML & CSS
- <input style="caret-color: red;" />

// React Native
+ <TextInput caretColor="red" />
```

### [resize](https://developer.mozilla.org/en-US/docs/Web/CSS/resize)

Whether an element is resizable, and if so, in which directions.

#### **Type:** `'none' | 'vertical' | 'horizontal' | 'both'`

#### **Default:** `'none'`

#### Conversion

```diff
// HTML & CSS
- <textarea style="resize: both;" />

// React Native
+ <TextInput resize="both" />
```


---

# 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://baconbrix.gitbook.io/react-native-web/primitives/textinput.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.
