Link
Inline hyperlink that marks external destinations.
Import
Section titled “Import”import { Link } from "@pelagornis/page/components";Example
Section titled “Example”The preview above renders this file. Copy it into src/components/ to start from it.
import { Link, Stack } from "@pelagornis/page/components";
export default function LinkDemo() { return ( <Stack direction="row" gap="sizeLarge" align="center" wrap> <Link href="/guides/getting-started/">Getting started</Link> <Link href="https://ui.pelagornis.com/" target="_blank"> RefineUI </Link> <Link href="https://ui.pelagornis.com/" target="_blank" showExternalIcon={false}> Without icon </Link> <Link href="/" disabled> Disabled </Link> </Stack> );}Use in MDX
Section titled “Use in MDX”Link can be written straight in an .mdx page. Import it below the frontmatter. It renders on the server, so no client directive is needed.
---title: Example---
import { Link } from "@pelagornis/page/components";
<Link href="https://ui.pelagornis.com/" target="_blank">RefineUI</Link>Use in Markdoc
Section titled “Use in Markdoc”pageMarkdoc() registers a link tag for this component. Add the preset once in markdoc.config.mjs (see Use in Markdoc), then write the tag in any .mdoc page.
{% link href="https://ui.pelagornis.com/" target="_blank" %}RefineUI{% /link %}Attributes use the same names and values as the React props.
Anatomy
Section titled “Anatomy”Parts of the component and the data-refineui role each one renders.
| Part | Role |
|---|---|
root | link |
States
Section titled “States”States the component styles. Component states are exposed as data attributes.
| Kind | States |
|---|---|
| Pseudo | focus-visible |
Keyboard
Section titled “Keyboard”Keys the component handles when it has focus.
| Key | Action |
|---|---|
| Enter | activate |
Reference
Section titled “Reference”- RefineUI · Link for design guidance and token detail.
- Use in MDX and Use in Markdoc for the general rules.