Knit UI
GitHub

Playground

Loading playground…

false
Playground
<Title
  order={1}
>
  The quick brown fox
</Title>

Examples

Orders

All six heading orders rendered together to compare default sizing.

Loading example…

OrdersSourceStorybook

Heading Sizes

Heading-scale size aliases (h1–h6) applied to a fixed order, showing that size overrides the default.

Loading example…

Heading SizesSourceStorybook

Token Sizes

Font-size tokens (xxs–xxl) used as a size override, showing the token-driven scale.

Loading example…

Token SizesSourceStorybook

Size Overrides Order

Size override decoupled from semantic order — order sets the tag, size sets the visual weight.

Loading example…

Size Overrides OrderSourceStorybook

Line Clamp

Line clamping — long text is truncated after the given number of lines.

Loading example…

Line ClampSourceStorybook

Text Wrap Balance

textWrap="balance" distributes text evenly across lines (web only).

Loading example…

Text Wrap BalanceSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefined——
orderTitleOrder | undefined
1 · 2 · 3 · 4 · 5 · 6
1Semantic heading level — sets the rendered tag (`h1`–`h6`) and its default size.
size systemFontSize | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | CssString | undefined
h1 · 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 systemThemeName | 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.

Edit this page on GitHub