Staaarter

Edge Label About

Asymmetric about section with a full-bleed image carrying a rotated vertical edge label, paired with offset heading and body copy plus an inline stats row below.

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 media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/edge-label-about.json

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

Usage

The file also exports about36Demo, 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 { About36, about36Demo } from "@/components/blocks/about/about36";

export default function Page() {
  return <About36 {...about36Demo} />;
}

Props

PropTypeDefaultDescription
edgeLabelstringnoneShort text rendered vertically (writing-mode: vertical-rl) over the top-left corner of the image.
headingstringnoneSection heading.
paragraphsstring[]noneBody paragraphs rendered below the heading.
statsStatItem[][]Inline stat row below the copy, separated by a top border.
imageMediaSlotImageundefinedFull-bleed image on the left column; falls back to the shared gradient placeholder.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • The edgeLabel is real rotated text via CSS writing-mode, not an icon or badge component, distinguishing it from About17's icon-badge award list.
  • On large screens the heading and paragraph column is pulled up and inset with a negative top margin and left indent so it reads as offset against the full-bleed image, unlike About13's company-profile layout where the image sits above the text in the same column.
  • The stats row uses flex-wrap with individually sized items rather than About14's fixed 4-column grid, so it stays compact when only two or three stats are supplied.