> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobile-starter.amisi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TextField

> Use `TextField` for labeled text input with helper and error messages.

## Basic usage

```tsx theme={null}
import { TextField } from '@amisi/ui';

<TextField label="Email" placeholder="you@example.com" />;
```

## Example

```tsx theme={null}
import { TextField } from '@amisi/ui';

<TextField
  label="Email"
  value={email}
  onChangeText={setEmail}
  helperText="We will never share your email."
  keyboardType="email-address"
  autoCapitalize="none"
/>;
```

## Available props

* `label?: string`
* `error?: string`
* `helperText?: string`
* `isDisabled?: boolean`
* `isReadOnly?: boolean`
* `isRequired?: boolean`
* Inherits `TextInputProps` including `value`, `defaultValue`, `onChangeText`, `placeholder`

## Available methods and handlers

* `onChangeText(text)`: change handler from inherited `TextInputProps`
* `onBlur(event)`: blur handler from inherited `TextInputProps`
* `onFocus(event)`: focus handler from inherited `TextInputProps`
