Hero Product Toast
A full-bleed photo hero with a centered headline and CTA, and a dismissible floating product card in the corner. Harvested from Good Life Meds.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/hero-product-toast.jsonDependencies:
lucide-reactUses:resilient-image

We are simplifying thepath to the good life
Usage
hero-product-toast-example.tsx
import { HeroProductToast } from "@dbs/ui";
export default function HeroProductToastExample() {
return (
<HeroProductToast
image="/samples/glm-hero-athlete.jpg"
imageAlt="Outdoor wellness at sunrise"
title={
<>
We are simplifying the
<span className="block">path to the good life</span>
</>
}
ctaLabel="Find your treatment"
ctaHref="#"
toast={{
badge: "Most popular",
category: "Weight loss",
name: (
<>
Compounded Tirzepatide
<sup className="ml-0.5 align-super text-[0.5em]">Rx</sup>
</>
),
image: "/samples/glm-hero-bottle.jpg",
imageAlt: "Treatment bottle",
learnMoreLabel: "Learn more",
ctaLabel: "Get started",
ctaHref: "#",
}}
/>
);
}
