@keystone-next/fields-color-legacy

1.1.0 • Public • Published

Color

Stores hexidecimal RGBA (Red, Green, Blue, Alpha) color values. Presents in the Admin UI as an interactive color picker.

Usage

const { Color } = require('@keystone-next/fields-color-legacy');

keystone.createList('Product', {
  fields: {
    heroColor: { type: Color },
  },
});

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

Readme

Keywords

none

Package Sidebar

Install

npm i @keystone-next/fields-color-legacy

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

30.6 kB

Total Files

21

Last publish

Collaborators

  • emmatown
  • jedwatson
  • bladey