Skip to main content

ColorPicker

Allow users to select a color from a color palette.

boolean
Default: false

Allow user to select an alpha value.

string

The default value for the field.

() => void
string

An identifier for the field that is unique within the nearest containing form.

string

The currently selected color.

Supported formats include:

  • HSL

Learn more about registering events.

<typeof tagName> | null
<typeof tagName> | null
Examples
<s-color-picker value="#FF0000" alpha />

Preview

  • Use the alpha slider if you want to allow merchants to select a transparent color
Was this page helpful?