@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    0
  • 1.0.12
    0
  • 1.0.11
    0

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

30.6 kB

Total Files

21

Last publish

Collaborators

  • emmatown
  • jedwatson
  • bladey