Color

The Color field is a color picker. You can use this field to select and set colors to use on your component.

Text Field
{
  component: 'color',
  name: 'colorName',
  label: 'Color Field',
  description: 'A color input',
  defaultValue: '#F2F2F2',
}

Key

Type

Required

Description

component

string

yes

The name of the field component. (color)

name

string

yes

The name of the field that will be accessible by the cms prop of the component.

label

string

no

A human-readable label for the field.

description

string

no

A short description of the setting scope.

defaultValue

string

no

The default value for the field. Can be a HEX value.

Last updated