PixelDosa UI

Product Hero

A responsive product-page opening section in four compositions, with composable copy, actions, and product visuals.

Centered

A clearer way to plan

Bring every project into focus.

Give your team one shared place to make plans, track progress, and move good ideas forward.

Split

The workspace for focused teams

Make your best work easier to find.

Bring your team's projects, decisions, and next steps into one calm workspace.

Product showcase

One view. The whole launch.

From first draft to shipped.

Keep the plan, the people, and the details together while the work moves forward.

Editorial

Built for considered work

Less noise around the work that matters.

A thoughtful home for the plans and decisions that move your team forward.

Installation

bash
npx shadcn@latest add @pixeldosa/product-hero

Requires `cn` at `@/lib/utils`, which `npx shadcn init` creates. Supply working action elements through the `actions` slot and a meaningful product visual through `visual`; omit `visual` when the product has no useful preview.

Usage

import { ProductHero } from "@/components/blocks/product-hero";
import { Button } from "@/components/ui/button";

export function ProductPageHero() {
  return (
    <ProductHero
      eyebrow="The workspace for focused teams"
      title="Make your best work easier to find."
      description="Bring projects, decisions, and next steps into one calm workspace."
      variant="split"
      actions={
        <>
          <Button>Get started</Button>
          <Button variant="outline">Explore the product</Button>
        </>
      }
      visual={<ProductScreenshot />}
    />
  );
}

Choose a composition based on the content: Centered for one focused message, Split when copy and product imagery should share the row, Showcase when the product visual deserves the width, and Editorial for a more text-led opening. Each composition is previewed separately above.

Props

PropTypeDefaultDescription
eyebrowstring—Short context line above the headline.
titlestring—Required main value proposition.
descriptionstring—Supporting sentence or paragraph.
actionsReact.ReactNode—Caller-supplied primary and secondary actions.
visualReact.ReactNode—Product screenshot, illustration, or composed preview.
variant"centered" | "split" | "showcase" | "editorial""split"Layout composition.
headingLevel1 | 2 | 31Heading level for the consuming page's outline.
classNamestring—Additional classes applied to the section.

why it's built this way

Engineering Notes

Uses a composed slot API for actions and visual rather than embedding a product screenshot, CTA behavior, or a specific brand's copy. Product sites need control over links, analytics, responsive media, and server-rendered imagery, while the block's responsibility is the responsive composition and heading hierarchy. CVA defines the four named layout variants so consumers can extend the matrix without branching through conditional class strings. It is a Level 2 block intended for product-page templates, not a standalone control.

how it moves, and when it doesn't

Motion Notes

The block has no entrance, autoplay, or decorative motion; its job is to establish page hierarchy immediately, and moving content would delay that orientation. CTA controls may use their own interaction feedback, but the hero itself does not animate. Because no motion is introduced, reduced-motion settings do not hide content or change the layout.