Skip to content
KeystoneJS LogoKeystoneJS
👋🏻 Keystone 5 has officially moved to maintenance only. For the latest release of Keystone please visit the Keystone website.

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

OptionTypeDefaultDescription
isRequiredBooleanfalseDoes this field require a value?
isUniqueBooleanfalseAdds a unique index that allows only unique values to be stored
isMultilineBooleanfalseMakes the field render as a textarea

On this page

  • Usage
  • Config
Edit on GitHub