Palette Ribbon
ProNewExpand a color in a continuous swatch ribbon and copy its value from the inspector.
Installation
pnpm dlx shadcn@latest add @viewport/palette-ribbon
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| title* | stringPalette name. | — |
| swatches* | Swatch[]Named colors with unique hexadecimal values. | — |
Accessibility
- Swatches expose their names and selection. Clipboard success and failure are announced.