Skip to content
nexubDesign System
v2.4.0

Components · Typography

Heading

StableSince v0.0.1

Semantic heading component with size, weight, and tone control.

import { Heading } from '@nexub/react';

Examples

Default

Scale

Tones

Props

Props
PropTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 62The semantic HTML heading level rendered.
size'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'—Visual size of the heading, independent of the semantic level.
tone'default' | 'muted' | 'info' | 'success' | 'warning' | 'danger'—Color tone applied to the heading text.
weight'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold'—Font weight of the heading.
asChildboolean—Merges props onto the immediate child element (Radix Slot).

On iOS & Android