Actions
Link
Navigates somewhere. Always underlined so it is never told apart by colour alone.
text-accentby default;subtlefor low-emphasis links in dense metadata.externalopens a new tab and adds an external-link icon.- Use a Button, not a Link, for actions that change data.
When to use
Navigate to another page or record, or open an external resource.
Use something else
Performing an action → Button (or Button variant="tertiary").
Do
- Make the link text describe the destination: “View invoice INV-2207”.
- Use
externalfor links that leave the app; the icon tells people a new tab opens. - Use
subtleinside dense tables only when many links sit together.
Don't
- Don't write “click here” or “learn more” without context.
- Don't style a link as a button or a button as a link.
Props
| Prop | Type |
|---|---|
href | string |
external | boolean |
subtle | boolean |
current | boolean |
onClick | (e: any) => void; children: React.ReactNode; className?: string |
Use
const { Link } = window.Tessera;
const el = React.createElement(Link, { /* props */ });