2.0.9 • Published 3 years ago

@itoa/fields-color v2.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Color

This is the last active development release of this package as Itoa 5 is now in a 6 to 12 month active maintenance phase. For more information please read our Itoa 5 and beyond post.

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

Usage

const { Color } = require('@itoa/fields-color');

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

Config

OptionTypeDefaultDescription
isRequiredBooleanfalseDoes this field require a value?
isUniqueBooleanfalseAdds a unique index that allows only unique values to be stored