Knit UI
GitHub

Playground

Loading playground…

false
false
Playground
<Paragraph
  size="md"
>
  The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.
</Paragraph>

Examples

Sizes

The full seven-step type scale, each size on its own line.

Loading example…

SizesSourceStorybook

Truncate

Truncate overflowing text with an end ellipsis in a fixed-width container.

Loading example…

TruncateSourceStorybook

Line Clamp

Clamp the paragraph to two lines regardless of how much text it contains.

Loading example…

Line ClampSourceStorybook

Rich Children

Rich inline children with nested elements alongside plain text.

Loading example…

Rich ChildrenSourceStorybook

Inherit

inherit forwards all font properties from a parent element.

Loading example…

InheritSourceStorybook

Scale Comparison

All sizes in a stacked comparison.

Loading example…

Scale ComparisonSourceStorybook

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 and line-height token pair.
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.