Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
<Link
href="#link-demo"
/>
// Generated by scripts/generate-showcase.mjs. Do not edit directly.
page LinkDetail {
layout = "showcase"
state playground_size = ctx.url.searchParams.get("pg_size") ?? "default"
state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary"
state playground_label = ctx.url.searchParams.get("pg_label") ?? "Link"
state playground_href = ctx.url.searchParams.get("pg_href") ?? "#link-demo"
state playground_target = ctx.url.searchParams.get("pg_target") ?? ""
state playground_rel = ctx.url.searchParams.get("pg_rel") ?? ""
state playground_external = ctx.url.searchParams.get("pg_external") ?? "false"
state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1"
seo {
title = "Link"
description = "Theme-aware, responsive link component."
}
view {
Theme-aware, responsive link component. Change any prop and inspect the server-rendered component immediately.Link
Configure Link
<Link
href="#link-demo"
/>
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
<Link
href="#link-demo"
/>
A tighter variation for dashboards, side panels, tables, and operational interfaces.
<Link
size="sm"
label="Compact example"
href="#link-demo"
/>
A more expressive variation using additional data, stronger emphasis, and optional states.
<Link
size="lg"
label="Advanced example"
href="#link-demo"
/>
Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.
All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|---|---|---|
size | string | "default" | No |
color | string | "primary" | No |
label | string | "Link" | No |
href | string | "#" | No |
target | string | "" | No |
rel | string | "" | No |
external | boolean | false | No |
class | string | "" | No |