Headline with inline photos

Small photos slide open in the middle of the sentence.

UniversalUsed in production
Install
npx finepieces add headline-inline-photos
Or with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/headline-inline-photos.json

import { HeadlineInlinePhotos } from "@/components/fine-pieces/headline-inline-photos";

export default function Example() {
  return (
    <HeadlineInlinePhotos
      segments={[{ text: "Coffee" }, { image: "/images/cafe-1.webp", ratio: 1.6 }, { text: "that makes" }, { image: "/images/cafe-2.webp", ratio: 1.1 }, { text: "your day" }, { text: "better", accent: true }, { image: "/images/eten-1.webp", ratio: 1.9 }]}
      footer={{ left: "Kofi & Co · Rotterdam", right: { label: "See the menu →", href: "#" } }}
    />
  );
}