Skip to content
KeystoneJS LogoKeystoneJS

Text

Usage

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