Skip to content
Mosaic
On this page

Link

An inline text link, underlined on hover. With target='_blank' it appends an external-link icon.

Use for

  • a text link to another page
  • a link that opens in a new tab
  • an inline link inside a sentence

Practices

GuidancePractice
DoPass render to use a router link while keeping the styles.
Don’tUse it for an action that does not navigate. Use Button with variant='link' instead.

API reference

Renders an a, or the render element, and forwards its ref.

Slot: cl-link

PropTypeDescription
color'primary' | 'neutral' | 'negative'primary, neutral or negative.Default: 'primary'
size'xs' | 'sm' | 'md' | 'lg'xs, sm, md or lg.Default: 'md'
targetstring_blank adds the external-link icon after the text.

Examples

An external link

TSX
<Link href='https://clerk.com/docs' target='_blank'>Docs</Link>