Static CMS
Star StaticJsCMS/static-cms on GitHub
v4.3.0DocsExamplesDemoCommunity

Color

  • Name: color
  • UI: Color picker
  • Data type: string

The color widget translates a color picker to a color string.

Widget Options

For common options, see Common widget options.

NameTypeDefaultDescription
defaultstring''Optional. The default value for the field
allow_inputbooleanfalseOptional. Allows manual editing of the color input value
enable_alphabooleanfalseOptional. Enables Alpha editing

Examples

Basic

name: color
label: Color
widget: color

Kitchen Sink

name: color
label: Color
widget: color
enable_alpha: true
allow_input: true