Components/Form/Palette
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/palette
Palette displays a set of colors.
<Swatches/> instead.Add any number of fill options inside of a palette.
Accepts following `fill types`:
 - `solid color`
 - `gradient`
 - `image`
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.
Use <FormField/> to give the palette a label.
Create a selection of palette using <Thumbnail/> component.
Use a palette in a variety of composer side panels to allow users to select themes for their designs.
| Name | Type | Default | Description |
|---|---|---|---|
dataHook | string | — | Applies a data-hook HTML attribute that can be used in the tests. |
fill | ReactNode[] | — | Defines an array of fill items for the palette. Accepts solid colors, gradients or images. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
Last updated: 21 October 2026