Skip to content

Palette Picker

Pro

Pick one named palette from tiles or rows. Each item shows its name and a Palette Strip, and the arrow keys move the choice.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Palette Picker needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
11
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put one PalettePickerItem for each palette, with its name, radio dot, and strip. Name the group with aria-label.

theme-palette.tsx

PalettePicker

<div>
PropTypeDefaultDescription
classNamestring—
size"default""lg"—default 16px or lg 20px items; an item prop wins.
palettesRequired—The palettes to pick from, in order. The value of each is its id.
layout"grid""stack""grid"grid (default): wrapping tiles. stack: one row per palette, for a narrow panel.
childrenReactNode—Custom items. Default: one PalettePickerItem per palette.
From Base UIRadioGroupBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
readOnlybooleanfalseWhether the user should be unable to select a different radio button in the group.
requiredbooleanfalseWhether the user must choose a value before submitting a form.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PalettePickerItem

<span>
PropTypeDefaultDescription
classNamestring—
paletteRequired—The palette of this item. Its id is the radio value.
From Base UIRadio.RootBase UI docs
disabledboolean—Whether the component should ignore user interaction.
requiredboolean—Whether the user must choose a value before submitting a form.
readOnlyboolean—Whether the user should be unable to select the radio button.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

PalettePickerName

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

PalettePickerIndicator

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

PalettePickerStrip

<div>
PropTypeDefaultDescription
colorsreadonly string[]—The colors, any CSS colors, when there is no palette.
orientation"horizontal""vertical"—horizontal (default) fills the width; vertical stacks the parts.
gapboolean—2px gaps between the parts; each part keeps 2px corners and its own edge.
children—Custom parts: PaletteStripColor elements, or a function that renders each color (({ color, weight, index }) => <PaletteStripColor … />). Default: one part per color.
labelsPartial<{ empty: string; }>—The words (PALETTE_STRIP_LABELS), to translate them. Keep the object stable.
size"default""lg""sm"—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when people pick a whole set of colors, not one color.
  • Use layout="stack" for a narrow panel or a phone.
  • Use name to send the palette id with a form.
TabMoves focus to the checked palette.
Arrow keysMoves the choice to the next palette. Right to left, the keys turn.
Check
press · 100ms · the radio dot grows in, and the edge and fill change color

Built with

Installs with Palette Picker

  1. AddedPalette Picker, with Palette Strip, Radio Group.
Open the release