Components
Link
Text link: inline in running text, accent for UI links, subtle for secondary links. `external` opens a new tab safely.
Read the getting started guide first.
Usage
Use it to:
- navigate to another page or site
- inline references in text
Don’t use it to:
- actions that change data (use Button)
- a link styled as a button (use Button
asChild)
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/LinkExample.tsx
Examples
Variants
External
Dark theme
API Reference
Link
An <a>; supports all of its props. Adds:
| Prop | Type | Default |
|---|---|---|
href | string | |
variant | "inline""accent""subtle" | "inline" |
external | boolean | false |
asChild | boolean | false |
Accessibility
- A native link:
Tabfocuses it,Enterfollows it; the focus ring is drawn around the text. - External links announce that they open a new tab.
- Link text should make sense on its own (“Pricing”, not “click here”).
© 2026 Motion. Internal documentation.