BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/launchui/hero

Hero Section

launchui/hero
FreeBlock

A hero section with badge, title, description, CTA buttons, and mockup display.

Live preview

live · rendered by the registry
Rendered by launchui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.launchuicomponents.com/r/hero.json

Source

components/sections/hero/default.tsxwww.launchuicomponents.com/r/hero.json
1import { ArrowRightIcon } from "lucide-react";
2import { ReactNode } from "react";
3
4import { cn } from "@/lib/utils";
5
6import Github from "../../logos/github";
7import { Badge } from "../../ui/badge";
8import Glow from "../../ui/glow";
9import { LinkButton, type LinkButtonProps } from "../../ui/link-button";
10import { Mockup, MockupFrame } from "../../ui/mockup";
11import Screenshot from "../../ui/screenshot";
12import { Section } from "../../ui/section";
13
14interface HeroButtonProps extends Omit<LinkButtonProps, "children"> {
15 text: string;
16}
17
18interface HeroProps {
19 title?: string;
20 description?: string;
21 mockup?: ReactNode | false;
22 badge?: ReactNode | false;
23 buttons?: HeroButtonProps[] | false;
24 className?: string;
25}
26
27const DEFAULT_HERO_BUTTONS: HeroButtonProps[] = [
28 {
29 href: "https://www.launchuicomponents.com/",
30 text: "Get Started",
31 variant: "default",
32 },
33 {
34 href: "https://www.launchuicomponents.com/",
35 text: "GitHub",
36 variant: "glow",
37 icon: <Github className="mr-2 size-4" />,
38 },
39];
40
41const DEFAULT_HERO_BADGE = (
42 <Badge variant="outline" className="animate-appear">
43 <span className="text-muted-foreground">
44 New version of Launch UI is out!
45 </span>
46 <a href="https://www.launchuicomponents.com/" className="flex items-center gap-1">
47 Get started
48 <ArrowRightIcon className="size-3" />
49 </a>
50 </Badge>
51);
52
53const DEFAULT_HERO_MOCKUP = (
54 <Screenshot
55 srcLight="/placeholder-light.svg"
56 srcDark="/placeholder-dark.svg"
57 alt="Launch UI app screenshot"
58 width={1248}
59 height={765}
60 loading="eager"
61 className="w-full"
62 />
63);
64
65export default function Hero({
66 title = "Give your big idea the design it deserves",
67 description = "Professionally designed blocks and templates built with React, Shadcn/ui and Tailwind that will help your product stand out.",
68 mockup = DEFAULT_HERO_MOCKUP,
69 badge = DEFAULT_HERO_BADGE,
70 buttons = DEFAULT_HERO_BUTTONS,
71 className,
72}: HeroProps) {
73 return (
74 <Section
75 className={cn(
76 "fade-bottom overflow-hidden pb-0 sm:pb-0 md:pb-0",
77 className,
78 )}
79 >
80 <div className="max-w-container mx-auto flex flex-col gap-12 pt-16 sm:gap-24">
81 <div className="flex flex-col items-center gap-6 text-center sm:gap-12">
82 {badge !== false && badge}
83// … truncated

What it pulls in

npm packages

  • @radix-ui/react-slot
  • lucide-react
  • next-themes

Other registry items

  • https://launchuicomponents.com/r/button.json
  • https://launchuicomponents.com/r/badge.json
  • https://launchuicomponents.com/r/mockup.json
  • https://launchuicomponents.com/r/glow.json
  • https://launchuicomponents.com/r/screenshot.json

Files it writes

  • components/sections/hero/default.tsx
  • components/ui/button.tsx
  • components/ui/badge.tsx
  • components/ui/link-button.tsx
  • components/ui/mockup.tsx
  • components/ui/glow.tsx
  • components/logos/github.tsx
  • components/ui/screenshot.tsx

Facts

Registry
launchui
Type
registry:block
Access
Free
Files written
8
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on launchui www.launchuicomponents.com launch-ui/launchui on GitHub Raw registry item This item as JSON

More from launchui

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Bento Gridbento-gridlaunchuiBlocksFree1 dep
CarouselcarousellaunchuiBlocksFree5 deps
CTA SectionctalaunchuiBlocksFree1 dep · 4 files
FAQ SectionfaqlaunchuiBlocksFree2 deps · 2 files
Feature SectionfeaturelaunchuiBlocksFree2 deps
FooterfooterlaunchuiBlocksFree3 deps · 6 files
GallerygallerylaunchuiBlocksFree2 deps
Items SectionitemslaunchuiBlocksFree2 deps · 2 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex