Menu with a changing photo
The menu opens and the photo on the right changes with the treatment you hover.
UniversalUsed in production
Install
npx finepieces add photo-menuOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/photo-menu.jsonHover a treatment
example.tsx
import { PhotoMenu } from "@/components/fine-pieces/photo-menu";
export default function Example() {
return (
<PhotoMenu
brand="Maison Lila"
trigger="Treatments"
defaultOpen
groups={[
{ title: "Eyes", items: [{ label: "Lash lift", href: "#", image: "/images/salon-1.webp" }, { label: "Brow lamination", href: "#", image: "/images/huid-1.webp" }] },
{ title: "Nails", items: [{ label: "BIAB", href: "#", image: "/images/huid-2.webp" }, { label: "Gel polish", href: "#", image: "/images/salon-3.webp" }] },
{ title: "Skin", items: [{ label: "Facial", href: "#", image: "/images/huid-3.webp" }, { label: "Peel", href: "#", image: "/images/salon-2.webp" }] },
]}
>
<p className="absolute inset-0 grid place-items-center font-display text-[34px] font-medium text-[#B79C8C]">Pick a treatment</p>
</PhotoMenu>
);
}