Component packs › Parcel › Swatch Redye

Swatch Redye

Pick a glaze and it washes over the product in a circle that spreads from where you clicked, with a wet edge, while the shading stays put.

Swatch Redye is a colour picker from Parcel, a component pack with 8 components: E-commerce components where every product turns, packs and travels. Price: $2 for the whole pack.

Built with: radial wash, radio group, click to dye.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Swatch Redye props

PropTypeDefaultDescription
namestring
pricenumber
currencystring
coloursRedyeColour[]
profile'bottle' | 'jar' | 'cup'
onChange(colour: RedyeColour) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: re-dyes from different points until touched.

Methods on the ref

Use it in React

import SwatchRedye from './SwatchRedye';

<SwatchRedye />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Parcel

Good for: E-commerce UI components.