Palette

Components/Form/Palette

Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/palette

Overview

Copy

Palette displays a set of colors.

Do

  • Use it to represent a set of solid colors, gradients or images.
  • Use it to display available styles to choose from.

Don't

  • Don't use it to select a fill option from a set. Use <Swatches/> instead.

Feature examples

Fills

Add any number of fill options inside of a palette.

Copy

Type

Accepts following `fill types`:
 - `solid color`
 - `gradient`
 - `image`

Copy

Dimensions

Control component dimensions with a parent container. Component have no dimensions of its own - It inherits the width and height of a container it is wrapped to.

Copy

Common use case examples

Form Field

Use <FormField/> to give the palette a label.

Copy

Thumbnail

Create a selection of palette using <Thumbnail/> component.

Copy

Composer

Use a palette in a variety of composer side panels to allow users to select themes for their designs.

Copy

Code

Copy

Props

NameTypeDefaultDescription
dataHookstring—Applies a data-hook HTML attribute that can be used in the tests.
fillReactNode[]—Defines an array of fill items for the palette. Accepts solid colors, gradients or images.

Testkit

Import the driver matching your test environment:

Copy

Driver methods

MethodDescription
existsChecks whether the component found with the given data hook.
elementGets the component root element.
clickClicks on the component root element.
baseReturns UniDriver for the base element.

Changelog

  • 1.339.0 (2026-10-19) — maintenance release, no component-specific changes
  • 1.338.0 (2026-10-15) — maintenance release, no component-specific changes
  • 1.330.0 (2026-09-28) — maintenance release, no component-specific changes
  • 1.326.0 (2026-09-17) — maintenance release, no component-specific changes
  • 1.310.0 (2026-08-10) — maintenance release, no component-specific changes
  • 1.292.0 (2026-06-22) — maintenance release, no component-specific changes
  • 1.289.0 (2026-06-17) — maintenance release, no component-specific changes
  • 1.260.0 (2026-03-17) — maintenance release, no component-specific changes
  • 1.254.0 (2026-02-03) — maintenance release, no component-specific changes
  • 1.247.2 (2026-01-21) — maintenance release, no component-specific changes
  • 1.207.0 (2025-07-24) — maintenance release, no component-specific changes
  • 1.151.0 (2025-01-07) — maintenance release, no component-specific changes
  • 1.102.0 (2024-04-16) — maintenance release, no component-specific changes
  • 1.92.1 (2024-02-05) — maintenance release, no component-specific changes

Last updated: 21 October 2026

Did this help?