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 |