Title
Pre-alphaThe registry and the CLI are not published yet.Roadmap

Title

Headings wired to the theme's type scale.

Installation

npx axiom add title
pnpm dlx axiom add title
yarn dlx axiom add title
bun x axiom add title

Usage

import { Title } from '@/components/ui/title';

<Title variant="display">Settings</Title>
<Title variant="heading">Notifications</Title>
<Title variant="subheading" color="muted">Quiet hours</Title>

Variants

Each variant points to a typography token. Pick the variant from the role of the heading on the screen, not from the size you want.

VariantTokenSize / line height · weightUse for
displaylargeTitle34/41 · 700Screen title, large header
headingLgtitle128/34 · 700Main section of a screen
headingtitle222/28 · 700Section title (default)
headingSmtitle320/25 · 600Card or sheet title
subheadingheadline17/22 · 600Group title, list header

Props

PropTypeDefaultDescription
variant'display' | 'headingLg' | 'heading' | 'headingSm' | 'subheading''heading'Typography style. See Variants.
color'default' | 'muted' | 'inverse''default'Content color from the theme.
align'left' | 'center' | 'right''left'Text alignment.
numberOfLinesnumberTruncates with an ellipsis after this many lines.
asChildbooleanfalsePasses the styles to the child instead of rendering a Text. See Slot.
styleStyleProp<TextStyle>Extra styles, applied after the variant.

Title also accepts every React Native Text prop.

Accessibility

  • accessibilityRole="header" is set by default, so screen readers announce the text as a heading.
  • Font scaling stays on. Use maxFontSizeMultiplier to cap it on dense screens, with the caps from Text.