About
Editorial insurance agency hero featuring an inverted brand notch navbar, smooth category switcher dock, and interactive radial multi-policy bundle consolidation view.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Insurance Agency Hero to your project and fits it to your theme.
Code
How Insurance Agency Hero is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { useState, useEffect } from "react";
import InsuranceAgencyHero from "@/components/ui/insurance-agency-hero";
const settings = {
brandName: "NavSav",
phone: "1-888-800-1475",
headlinePrefix: "We cover your",
quoteCtaText: "Get a quote",
initialViewMode: "category" as "category" | "bundle",
};
export default function InsuranceAgencyHeroDemo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
const [activeCategory, setActiveCategory] = useState<string>("home");
useEffect(() => {
if (typeof window === "undefined") return;
const themeParam = new URLSearchParams(window.location.search).get("theme");
if (themeParam === "dark") {
document.documentElement.classList.add("dark");
} else if (themeParam === "light") {
document.documentElement.classList.remove("dark");
}
}, []);
return (
<div className="min-h-screen w-full bg-background text-foreground flex items-center justify-center px-2 sm:px-4">
<InsuranceAgencyHero
brandName={s.brandName}
phone={s.phone}
headlinePrefix={s.headlinePrefix}
subheadline="One life, every policy. Compared across top carriers by a licensed agent near you."
activeCategoryId={activeCategory}
onCategoryChange={(id) => setActiveCategory(id)}
quoteCtaText={s.quoteCtaText}
initialViewMode={s.initialViewMode}
socialProof={{
countText: "2,300+",
description: "families covered across Texas",
avatars: [
"https://cdn.21st.dev/assets/mirror/25/257bcf818acd9e23d260149faed403e73c8b7d785db6bf127246741a288b5d84.jpg",
"https://cdn.21st.dev/assets/mirror/b8/b8c94092491152f0382fcc8f1e7d89c0bf7bd7668611e2cfddec6f26e30c8e25.jpg",
"https://cdn.21st.dev/assets/mirror/c1/c1e918401d72a2993ff45a47e8a079282db566f43a6b8e9d16c8e1803c19f893.jpg",
],
}}
categories={[
{
id: "home",
label: "Home",
headlineWord: "home",
provider: "Best match · Travelers",
price: 89,
billingPeriod: "/mo",
badgeText: "Dwelling $450K covered",
imageUrl:
"https://cdn.21st.dev/assets/mirror/f2/f245eba622d1baa5781a043dd90a828ec8ebdd27d98d241aa077f318c0d4c637.jpg",
iconName: "Home",
},
{
id: "auto",
label: "Auto",
headlineWord: "drive",
provider: "Best match · Progressive",
price: 74,
billingPeriod: "/mo",
badgeText: "2 cars renews Dec 1",
imageUrl:
"https://cdn.21st.dev/assets/mirror/23/230c93f8367e8ac0795f1b61c197da2f8591f7c76ec7ff4012cd04bc15308119.jpg",
iconName: "Car",
},
{
id: "boat",
label: "Boat",
headlineWord: "weekends",
provider: "Best match · Progressive",
price: 42,
billingPeriod: "/mo",
badgeText: "24' console towing included",
imageUrl:
"https://cdn.21st.dev/assets/mirror/59/5961ca80f4cc25022bd3ac725147b78e6dac55c3274dbcf694b37bc2f98232a3.jpg",
iconName: "Sailboat",
},
{
id: "life",
label: "Life",
headlineWord: "family",
provider: "Best match · Allstate",
price: 31,
billingPeriod: "/mo",
badgeText: "$1M term 20 years",
imageUrl:
"https://cdn.21st.dev/assets/mirror/1b/1b515ca90086837f737dd509cc7a66e08bdfc3828834a36d5b679a5d5ba12efd.jpg",
iconName: "Heart",
},
]}
bundlePolicies={[
{ id: "bundle-home", label: "Home", price: 89, iconName: "Home" },
{ id: "bundle-auto", label: "Auto", price: 74, iconName: "Car" },
{ id: "bundle-boat", label: "Boat", price: 42, iconName: "Sailboat" },
{ id: "bundle-business", label: "Business", price: 128, iconName: "Briefcase" },
{ id: "bundle-life", label: "Life", price: 31, iconName: "Heart" },
{ id: "bundle-motorcycle", label: "Motorcycle", price: 26, iconName: "Bike" },
{ id: "bundle-flood", label: "Flood", price: 47, iconName: "Waves" },
{ id: "bundle-umbrella", label: "Umbrella", price: 18, iconName: "Umbrella" },
]}
/>
</div>
);
}
















