Skip to content

Palette Strip

Pro

A palette as one bar of colors, each part as wide as its share. A thin edge keeps a white part clear on a white page.

  • React Aria
  • 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 Strip 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
5
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 PaletteStripColor for each color. A weight sets its share of the strip, so a 60-30-10 brand palette reads at a glance.

brand-palette.tsx

PaletteStrip

<div>
PropTypeDefaultDescription
size"default""lg""sm"—
palette—The palette: its colors, weights, and name. colors wins when both are set.
colorsreadonly string[]—The colors, any CSS colors, when there is no palette.
orientation"horizontal""vertical""horizontal"horizontal (default) fills the width; vertical stacks the parts.
gapbooleanfalse2px 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.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PaletteStripColor

<span>
PropTypeDefaultDescription
colorRequiredstring—The color of the part, any CSS color.
weightnumber1The share of the strip, in any unit (the same unit for every part). Default 1.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use it to show a set of colors in little space.
  • Use palette.weights to size each part by its share.
  • Use gap when the colors are separate things, such as status colors.
  1. AddedPalette Strip.
Open the release