// 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_underline = ctx.url.searchParams.get("pg_underline") ?? "hover" state playground_external = (ctx.url.searchParams.get("pg_external") ?? "false") === "true" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Link" description = "Render an accessible internal or external link with target, relation, size, color, and public focus or click events." } view {
Layout component

Link

Render an accessible internal or external link with target, relation, size, color, and public focus or click events.

9 props1 slots0 outputsTheme readyResponsive
Interactive playground

Configure Link

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<Link
  href="#link-demo"
/>
Component props9 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Standard navigation link

Use for routes within the current application.

01
Component usage.wrn
<Link
  label="Open components"
  href="/base"
/>
Compact

External resource link

Communicate external navigation and use safe target attributes.

02
Component usage.wrn
<Link
  size="sm"
  label="WRNexusJS documentation"
  href="https://wrnexusjs.dev"
  target="_blank"
  external="true"
/>
Advanced

Large emphasized link

Use a larger link in empty states, promotional cards, and resource lists.

03
Component usage.wrn
<Link
  size="lg"
  color="info"
  label="Explore framework guides"
  href="/framework-guides"
/>
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
labelstring"Link"No
hrefstring"#"No
targetstring""No
relstring""No
underlinestring"hover"No
externalbooleanfalseNo
classstring""No
} }