Knit UI
GitHub

Playground

Loading playground…

Playground
<Anchor
  href="https://example.com"
  underline="hover"
>
  Anchor link
</Anchor>

Examples

Default

Default link text.

Loading example…

DefaultSourceStorybook

Underline

Each underline value, hover to see the difference.

Loading example…

UnderlineSourceStorybook

Sizes

The full seven-step text size scale.

Loading example…

SizesSourceStorybook

Without Href

A link with no href still carries the link role.

Loading example…

Without HrefSourceStorybook

Truncated

truncate clamps overflowing link text to a single line with an ellipsis.

Loading example…

TruncatedSourceStorybook

Themed

The accent ramp follows the active theme — same link, different accent.

Loading example…

ThemedSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefined——
hrefstring | undefinedhttps://example.comDestination URL. Forwarded to the underlying `<a>` element on web.
size systemFontSize | CssString | undefined
xxs · xs · sm · md · lg · xl · xxl
—Text size from the token scale.
theme systemThemeName | null | undefined
unset · blue · red · green · pink
—Active theme accent — recolors the link via the palette ramp.

Plus 775 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