ComponentsEditorial

Heading

Section heading in the display face, Hanken Grotesk through the --font-display variable, at four sizes that step up with the Section container. Renders an h2 by default; the tag can be swapped.

Open the preview in a new tab

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/heading
npx shadcn add @01orbital/heading
yarn shadcn add @01orbital/heading
bunx --bun shadcn add @01orbital/heading

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/editorial/heading.tsx, as source you own and edit.

The example also uses section. Install it too:

pnpm dlx shadcn add @01orbital/section
npx shadcn add @01orbital/section
yarn shadcn add @01orbital/section
bunx --bun shadcn add @01orbital/section

Usage

import { Heading } from "@/components/editorial/heading"
import {
  Section,
  SectionContent,
} from "@/components/editorial/section"

const COPY = {
  text: "A strong start. Room to make it yours.",
}

export default function HeadingDemo() {
  return (
    <Section className="py-0">
      <SectionContent className="px-0 @5xl/section:px-0">
        <Heading size="compact">{COPY.text}</Heading>
      </SectionContent>
    </Section>
  )
}

API reference

Prop

Type

It also accepts the props of the Base UI part it wraps, and the HTML attributes of the element it renders.

Dependencies

npm: @base-ui/react, class-variance-authority, cn. The CLI installs them for you.

Registry pieces it installs with it:

  • font-hanken-grotesk

On this page