Type-Led Hero
A type-led landing hero: overlapped avatars with a stat, a very large balanced heading, a CTA slot and a wide rounded photo with an optional tint.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/type-led-hero.json


23K users love our solar
Go solar, save more: clean and renewable energy for a brighter tomorrow
Get solar estimate
Usage
type-led-hero-example.tsx
import { ArrowUpRight } from "lucide-react";
import { TypeLedHero } from "@dbs/ui";
export default function TypeLedHeroExample() {
return (
<div className="w-full" style={{ "--ui-accent": "#1a5fb4" } as React.CSSProperties}>
<TypeLedHero
proof={{ avatars: ["/samples/sunhaven-customer-alex.jpg", "/samples/sunhaven-customer-elena.jpg", "/samples/sunhaven-customer-jake.jpg"], stat: "23K users", text: "love our solar" }}
title={<>Go solar, save more: <span className="font-normal text-ink-subtle">clean and renewable</span> energy for a brighter tomorrow</>}
action={
<a href="#" className="inline-flex h-14 items-center gap-3 rounded-full bg-ink pl-8 pr-3 text-sm font-medium text-canvas">
Get solar estimate
<span className="flex h-9 w-9 items-center justify-center rounded-full bg-canvas text-ink"><ArrowUpRight className="h-4 w-4" /></span>
</a>
}
image="/samples/sunhaven-hero.jpg"
imageAlt="A wide landscape"
imageTint="linear-gradient(225deg, rgba(18,128,150,0.5) 0%, rgba(18,128,150,0) 58%)"
/>
</div>
);
}