Colour swatches
Vertical strips in the colour of each treatment. The chosen strip opens up with a photo and name.
UniversalUsed in production
Install
npx finepieces add colour-swatchesOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/colour-swatches.jsonWijs een strook aan
example.tsx
import { ColourSwatches } from "@/components/fine-pieces/colour-swatches";
export default function Example() {
return (
<ColourSwatches
swatches={[
{ name: "Lash lift", color: "#D9B8A6", image: "/images/salon-1.webp", note: "from €45" },
{ name: "Brows", color: "#B98A74", image: "/images/salon-2.webp", note: "from €55" },
{ name: "BIAB", color: "#8E5E4D", image: "/images/huid-1.webp", note: "from €65" },
{ name: "Facial", color: "#E7CFC2", image: "/images/huid-2.webp", note: "from €75" },
{ name: "Waxing", color: "#5E4134", image: "/images/salon-3.webp", note: "from €85" },
]}
/>
);
}