Staaarter

Numbered Principles

Asymmetric two-column layout with heading on the left and numbered company principles on the right. Clean and editorial.

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

npx shadcn add https://staaarter.com/r/numbered-principles.json

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

Usage

The file also exports about6Demo, 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 { About6, about6Demo } from "@/components/blocks/about/about6";

export default function Page() {
  return <About6 {...about6Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneSection heading in the left column.
descriptionstringundefinedSupporting text under the heading.
principlesPrinciple[]noneNumbered list rendered in the right column, in array order.
classNamestringnoneExtra classes for the outer section element.

Types

type Principle = {
  title: string;
  description: string;
};

Behavior notes

  • Numbers are derived from the array index (zero-padded to two digits), not a field on Principle, so reordering the array changes the displayed numbers automatically.
  • The left column uses a narrower grid track than the right (a 1:1.4 ratio), so it reads as a sidebar heading rather than a competing column.