GitHub

Section Heading

Section-level heading with optional badge pill

Installation

pnpm add @corew500/ui

Usage

import { SectionHeading } from "@corew500/ui/section-heading"

<SectionHeading>Content</SectionHeading>

Variants

sectionHeadingVariants

AxisValuesDefault
align
leftcenter
center
size
smdefaultlg
default

CMS Integration

CMSPayload CMS Integration
This component supports CMS-driven content via @corew500/cms-payload.
Loading...

API Reference

Props

PropTypeDefaultDescription
title*stringSection title (required)
descriptionstringOptional description text
badgeSectionHeadingBadgeOptional badge above the title
levelenum2Heading level for semantic HTML
alignenumcenterText alignment
sizeenumdefaultSize variant affecting title size

Accessibility

Focus Management

  • - Uses semantic heading levels (h2-h4) for proper document outline

Screen Readers

  • Badge icons use aria-hidden="true" as they are decorative

Additional

  • Heading level should match document hierarchy

Localization

Translatable Content

  • - All text content is provided via props
  • Pass pre-translated strings for i18n support

Related