Typography@knitui/components
Title
Title renders a semantic heading element (h1–h6) driven by the order prop. size overrides the order-driven font size and accepts h1–h6 heading-scale aliases, seven-step font-size tokens (xxs–xxl), or any arbitrary CSS value.
import { Title } from "@knitui/components";Playground
Loading playground…
<Title
order={1}
>
The quick brown fox
</Title>Examples
Orders
All six heading orders rendered together to compare default sizing.
Loading example…
Heading Sizes
Heading-scale size aliases (h1–h6) applied to a fixed order, showing that size overrides the default.
Loading example…
Token Sizes
Font-size tokens (xxs–xxl) used as a size override, showing the token-driven scale.
Loading example…
Size Overrides Order
Size override decoupled from semantic order — order sets the tag, size sets the visual weight.
Loading example…
Line Clamp
Line clamping — long text is truncated after the given number of lines.
Loading example…
Text Wrap Balance
textWrap="balance" distributes text evenly across lines (web only).
Loading example…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
disabled system | boolean | undefined | — | — |
order | TitleOrder | undefined1 · 2 · 3 · 4 · 5 · 6 | 1 | Semantic heading level — sets the rendered tag (`h1`–`h6`) and its default size. |
size system | FontSize | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | CssString | undefinedh1 · h2 · h3 · h4 · h5 · h6 · xxs · xs · sm · md · lg · xl · xxl | — | Overrides the order-driven font size. Accepts heading aliases (`h1`–`h6`), seven-step font-size tokens (`xxs`–`xxl`), or arbitrary CSS values. |
theme system | ThemeName | null | undefined | — | Applies a theme to this element |
Plus 773 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.