Use link() for inline hyperlinks, link_button() for prominent call-to-action links, and page_link() to jump to another @aiui.page route without a full browser reload.
link()
link_button()
page_link()
@aiui.page
<ComponentPreview title="Link, Link Button & Page Link">
[
{"type": "link", "text": "Read the Quickstart guide", "href": "/docs/getting-started/quickstart", "external": false},
{"type": "columns", "children": [
{"type": "link", "text": "Open Quickstart", "href": "/docs/getting-started/quickstart", "variant": "primary"},
{"type": "link", "text": "Inspect Agents", "href": "/agents", "page": "agents", "variant": "outline"}
]}
]
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Component | Parameter | Description |
|---|---|---|
| link | text, href, external | Standard link (external=True opens in a new tab with rel="noopener noreferrer"). |
link
text
href
external
external=True
rel="noopener noreferrer"
| link_button | label, href, variant, external | Button-styled link (primary, secondary, outline, ghost). |
link_button
label
variant
primary
secondary
outline
ghost
| page_link | page_id, label, variant, params | Client-side SPA navigation to another registered page with optional URL query params. |
page_link
page_id
params