<commit_before><!--[meta]
section: api
subSection: field-types
title: Text
[meta]-->

# Text

## Usage

```js
keystone.createList('Product', {
  fields: {
    description: { type: Text },
    // ...
  },
});
```

### Config

| Option       | Type      | Default | Description                                                     |
| ------------ | --------- | ------- | --------------------------------------------------------------- |
| `isRequired` | `Boolean` | `false` | Does this field require a value?                                |
| `isUnique`   | `Boolean` | `false` | Adds a unique index that allows only unique values to be stored |<commit_msg>Add documentation for `isMultiline` (#2025)<commit_after><!--[meta]
section: api
subSection: field-types
title: Text
[meta]-->

# Text

## Usage

```js
keystone.createList('Product', {
  fields: {
    description: { type: Text },
    // ...
  },
});
```

### Config

| Option       | Type      | Default | Description                                                     |
| ------------ | --------- | ------- | --------------------------------------------------------------- |
| `isRequired` | `Boolean` | `false` | Does this field require a value?                                |
| `isUnique`   | `Boolean` | `false` | Adds a unique index that allows only unique values to be stored |
| `isMultiline` | `Boolean` | `false` | Makes the field render as a textarea                            |
{'fraction_non_alphanumeric': 0.255524861878453, 'fraction_numerical': 0.0027624309392265192, 'mean_word_length': 1.2747252747252746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '399078', 'n_tokens_mistral': 381, 'n_tokens_neox': 359, 'n_words': 104}