All components

Page Heading

A component that acts as the text-focused version of a hero banner. This component combines a pre-heading label, an H1 heading, supporting description text, and call-to-action buttons.

React
Figma
Open in New Tab

components/shadcncraft/pro-marketing/page-heading.tsx

import { cn } from "@/lib/utils";
import { Tagline } from "@/components/shadcncraft/pro-marketing/tagline";

function PageHeading({
  alignment = "left",
  className,
  ...props
}: React.ComponentProps<"div"> & { alignment?: "left" | "center" }) {
  return (
    <div
      data-slot="page-heading"
      className={cn(
        "group/page-heading flex max-w-3xl flex-col gap-4",
        alignment === "left" && "items-start text-left",
        alignment === "center" && "mx-auto items-center text-center",
        className
      )}
      {...props}
    />
  );
}

function PageHeadingTagline({ ...props }: React.ComponentProps<typeof Tagline>) {
  return <Tagline variant="badge" {...props} />;
}

function PageHeadingTitle({ className, ...props }: React.ComponentProps<"h1">) {
  return (
    <h1
      data-slot="page-heading-title"
      className={cn(
        "scroll-m-20 text-5xl font-medium tracking-tight text-balance text-foreground lg:text-6xl",
        className
      )}
      {...props}
    />
  );
}

function PageHeadingBody({ className, ...props }: React.ComponentProps<"p">) {
  return (
    <p
      data-slot="page-heading-body"
      className={cn(
        "max-w-xl text-lg font-normal text-pretty text-muted-foreground",
        className
      )}
      {...props}
    />
  );
}

function PageHeadingActions({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="page-heading-actions"
      className={cn("flex w-full flex-col gap-2 sm:w-fit sm:flex-row", className)}
      {...props}
    />
  );
}

export {
  PageHeading,
  PageHeadingActions,
  PageHeadingBody,
  PageHeadingTagline,
  PageHeadingTitle,
};
SBIOTJ

Join 3,000+ builders shipping with shadcncraft

Get access to this component and the full library

Production-ready blocks and components with matching Figma and React.

Get this componentFree
Benefits

Built for real interfaces

Each block is designed to work as part of a complete page, not just as a visual fragment.

Structured Layouts

Clear grids, consistent spacing, and predictable hierarchy.

Marketing + App Coverage

Landing pages, dashboards, onboarding, pricing, e-commerce, and more.

Theme Compatible

Works seamlessly with semantic tokens and theming.

Production-Ready States

Designed with real content, tokenized spacing, and real interaction patterns.

Figma + React Parity (Pro + React)

Design in Figma and ship with aligned React components.

Composable by Design

Mix blocks together to create complete pages without layout conflicts.

Frequently Asked Questions

Quick FAQs to get you started.
Still have questions? See all FAQs, or get support.

Yes. They follow shadcn/ui structure and are built for real products.

Real support from the team behind shadcncraft

Get help within 24 hours from the people who build and maintain the system.

Email
Prefer a direct line? Send us a message and we'll get back to you as soon as possible.
Discord
Get quick support, share feedback, or connect with other builders.
Feedback
Got something to say about anything shadcncraft? We'd love to hear it.