Skip to content
v2.5.0
English
Русский
Documentation

Heading

Heading is the semantic heading primitive.

Root Props

PropTypeDefault
asHeadingAs—
The HTML heading tag to render (e.g., 'h1', 'h2'). Defines semantic structure and accessibility level.
sizeHeadingSize—
Visual size of the heading, independent of the as tag. Typically mapped to a design system's type scale. Accepts values from 1 (smallest) to 11 (largest).
fontWeight400 | 500 | 600 | 700 | 900—
Font weight of the heading text. 400: Regular; 500: Medium; 600: Semi-bold; 700: Bold; 900: Extra bold
refRef<HTMLHeadingElement>—
Ref to the native HTML heading element. Useful for DOM access or focus management.

Also accepts all <h1>–<h6> attributes.

Child Parts

  • None. Heading is a single exported primitive.

Types

  • HeadingProps
  • HeadingAs
  • HeadingSize

State Model

  • Heading has no controlled state.
  • Semantics come from as; visuals come from size and fontWeight.