Staaarter

Overlap Heading About

About section with a large centered heading that overlaps the bottom edge of a banner image using a negative top margin, followed by a paragraph, CTA buttons, and a bottom stat ribbon.

By Staaarter Team
About
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/overlap-heading-about.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about38.tsx instead.

Usage

The file also exports about38Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { About38, about38Demo } from "@/components/blocks/about/about38";

export default function Page() {
  return <About38 {...about38Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneLarge heading rendered over the image's bottom edge via a negative top margin.
descriptionstringnoneCentered paragraph below the heading/image block.
imageMediaSlotImageundefinedWide banner image the heading overlaps; falls back to the shared gradient placeholder.
buttonsButtonItem[][]Centered CTA buttons below the description.
statsStatItem[][]Bottom stat ribbon in a bordered 4-column grid.
classNamestringnoneExtra classes for the outer section element.

Types

type ButtonItem = {
  label: string;
  href?: string;
  variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
};

type StatItem = { title: string; value: string };

Behavior notes

  • The heading sits in normal document flow with a negative top margin and a text-background color plus drop shadow so it visually overlaps the image above it, unlike About14 whose stats bar and story card never overlap and About38's own bottom ribbon which is a plain bordered grid, not overlapping anything.
  • The bottom stat ribbon reuses About14's fixed 4-column centered grid pattern, but here it comes after the CTA rather than being the section's opening element.
  • Buttons default to variant "default" like About1 and About14, not the alternating default/outline pattern used in About5.