MindeesUI
ComponentsTypography

Heading

Semantic heading from h1 to h6 — picks the matching type-scale step and sets the header accessibility role.

Heading is a thin wrapper over Text that maps a semantic level (1–6) to the matching h1h6 step in the modular type scale. It also defaults accessibilityRole to header so screen readers can navigate by landmark.

Import

import { Heading } from '@mindees/ui';

Usage

<Heading level={1}>Page title</Heading>
<Heading level={3} tone="secondary">Section</Heading>

Props

PropTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 62Semantic heading level. Drives the type-scale step (h1h6).

All Text props except variant are forwarded — tone, weight, align, italic, underline, strikethrough, fontFamily, and the underlying RN TextProps.

Accessibility

Defaults accessibilityRole to header. Pass a different accessibilityRole to override, or supply an accessibilityLabel when the rendered text isn't the right announce string.

On this page