Skip to main content
v7

Heading

A semantic heading element rendered as h2 via the Polymorph primitive.

Package@g4rcez/componentsSectionPrimitives

Examples

Basic Heading

Renders children inside an h2 element.

Basic

Welcome to the docs

Heading in Context

Heading used alongside descriptive text to form a content block.

With context

Getting Started

Follow these steps to set up your project.

Multiple Headings

Multiple headings forming a document outline.

Multiple

Section One

Section Two

Section Three

When to use Heading

Use when

You need the documented Heading interaction or presentation in a product workflow.

Avoid when

A native HTML element already provides the Heading behavior you need.

Accessibility

Keep the Heading labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.