Knit UI
GitHub

Playground

Loading playground…

false
false
false
Playground
<Text
  size="md"
  inline={false}
  inherit={false}
  span={false}
>
  Typography text
</Text>

Examples

Sizes

All seven sizes from xxs to xxl rendered side by side.

Loading example…

SizesSourceStorybook

Line Clamp

lineClamp limits text to N lines and appends an ellipsis.

Loading example…

Line ClampSourceStorybook

Truncate

Single-line truncation: true/"end" clips the tail; "start" clips the head.

Loading example…

TruncateSourceStorybook

Inline

inline tightens line-height so the text sits flush inside inline contexts.

Loading example…

InlineSourceStorybook

Inherit

inherit forwards font-size, weight, line-height, and family from the parent.

Loading example…

InheritSourceStorybook

As Span

span renders an inline host element, allowing Text to nest inside prose.

Loading example…

As SpanSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefinedSpecifies the disabled state of the text view for testing purposes.
size system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
xxs · xs · sm · md · lg · xl · xxl
mdFont-size + line-height pair from the token scale.
theme systemThemeName | null | undefinedApplies a theme to this element
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiTextElement> | undefined

Plus 507 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.