Text
A basic but versatile text field of arbitrary length.
Usage
JS
const { Text } = require('@keystonejs/fields');
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 |