import { Meta, Props, Story, Preview } from '@storybook/addon-docs/blocks';
import * as Stories from './TextInput.stories.js';
# TextInput
Accessible single- and multi-line text input via a keyboard. Supports features
such as auto-complete, auto-focus, placeholder text, and event callbacks. Note:
some props are exclusive to or excluded from `multiline`.
## Props
### autoCapitalize
Automatically capitalize certain characters (only available in Chrome and iOS Safari).
* `characters`: Automatically capitalize all characters.
* `none`: Completely disables automatic capitalization.
* `sentences`: Automatically capitalize the first letter of sentences (default).
* `words`: Automatically capitalize the first letter of words.
### autoComplete
Indicates whether the value of the control can be automatically completed by the
browser. [Accepted values](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input).
### autoCorrect
Automatically correct spelling mistakes. (Only available in iOS Safari.)
### autoFocus
If `true`, focuses the input on `componentDidMount`. Only the first form element
in a document with `autofocus` is focused.
### blurOnSubmit
If `true`, the text field will blur when submitted. The default value is `true`
for single-line fields and `false` for multiline fields. Note, for `multiline`
fields setting `blurOnSubmit` to `true` means that pressing return will blur the
field and trigger the `onSubmitEditing` event instead of inserting a newline
into the field.
### clearTextOnFocus
If `true`, clears the text field automatically when focused.
### defaultValue
Provides an initial value that will change when the user starts typing. Useful
for simple use-cases where you don't want to deal with listening to events and
updating the value prop to keep the controlled state in sync.
### disabled
If `true`, the input is disabled. (Web-only)
### editable
If `false`, text is not editable (i.e., read-only).
### keyboardType
Possible values: `"default" | "email-address" | "numeric" | "phone-pad" | "search" | "url" | "web-search"`.
Determines which keyboard to open on devices with a virtual keyboard. Safari iOS
requires an ancestral `