Skip to Content

Subheading

Section heading component: a responsive h2 title for features, pricing, FAQ, testimonials and CTA sections. One size that scales with the section, no size prop. Pair with Text for the section description.

pnpm dlx shadcn add @01orbital/subheading

The example also uses section. Install it too:

pnpm dlx shadcn add @01orbital/section

Usage

import {
  Section,
  SectionContent,
} from "@/components/section/section"
import { Subheading } from "@/components/subheading/subheading"

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

export default function SubheadingDemo() {
  return (
    <Section className="py-0">
      <SectionContent className="px-0 lg:px-0">
        <Subheading>{COPY.text}</Subheading>
      </SectionContent>
    </Section>
  )
}

Examples

New

subheading-observatory-public-night

subheading-observatory-public-night

Observatory Public Night

Subheading Observatory Public Night: an example of subheading.

pnpm dlx shadcn add @01orbital/subheading-observatory-public-night

API reference

The section heading in the display font, rendered as an <h2>: 30px with a 36px line, 40px with a 40px line from the sm breakpoint. One size, no props beyond the element's own; pass render to use another heading level. A page's headline is Heading.

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

Dependencies

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

No other registry pieces.