Components / Typography
Link
An anchor that opens external URLs in a new tab with an icon and a screen-reader announcement.
@ruckc/truss-ui Typography
Import
import { Link } from '@ruckc/truss-ui'; Playground
href
external
API
Also accepts every attribute of HTMLAnchorAttributes, applied to the underlying element.
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | — | Renders the element as a link to this URL. |
external | boolean | — | Force (or, with `false`, suppress) new-tab behaviour; by default a different origin counts as external. |
class | string | '' | |
children snippet | Snippet | — | Content, as a Svelte snippet. |