Knit UI
GitHub

Playground

Loading playground…

Playground
<Mark>
  highlighted text
</Mark>

Examples

Themed

Every accent theme applied to the same highlighted word.

Loading example…

ThemedSourceStorybook

Sizes

Inherited Text sizes from xxs to xxl.

Loading example…

SizesSourceStorybook

In Paragraph

Mark used inline inside a paragraph of running text — the typical use case.

Loading example…

In ParagraphSourceStorybook

Multiple Marks

Multiple marks in sequence to verify spacing and line-height remain consistent.

Loading example…

Multiple MarksSourceStorybook

Bold Mark

Heavier font weight for emphasis alongside the background tint.

Loading example…

Bold MarkSourceStorybook

Truncated

Long text with truncate enabled — the highlight clips to a single line.

Loading example…

TruncatedSourceStorybook

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
Font-size + line-height pair inherited from the Text surface.
theme systemThemeName | null | undefined
unset · yellow · blue · red · green · pink · gray
Active theme accent — recolors the mark via the palette ramp.
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.