Skip to content
nexubDesign System
v12.7.0

Components · Typography

Heading

StableAdded v0.0.1

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

import { Heading } from '@nexub/react';
View as Markdown

Playground

Props

The quick brown fox

TSX
<Heading>The quick brown fox</Heading>

Examples

Default

The quick brown fox

Scale

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Tones

Info tone

Success tone

Warning tone

Danger tone

States

  • The quick brown fox

    default
  • The quick brown fox

    size="display"
  • The quick brown fox

    size="h2"
  • The quick brown fox

    size="h3"
  • The quick brown fox

    size="h1"
  • The quick brown fox

    size="h4"
  • The quick brown fox

    size="h5"
  • The quick brown fox

    size="h6"
  • The quick brown fox

    tone="neutral"
  • The quick brown fox

    tone="info"
  • The quick brown fox

    tone="success"
  • The quick brown fox

    tone="warning"
  • The quick brown fox

    tone="danger"
  • The quick brown fox

    tone="leap"
  • The quick brown fox

    tone="bookub"
  • The quick brown fox

    tone="payub"

Props

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

On iOS & Android