// Generated by scripts/generate-showcase.mjs. Do not edit directly. page TextLinkDetail { layout = "showcase" state playground_label = ctx.url.searchParams.get("pg_label") ?? "Text Link" state playground_href = ctx.url.searchParams.get("pg_href") ?? "#text-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_icon = ctx.url.searchParams.get("pg_icon") ?? "" state playground_iconPosition = ctx.url.searchParams.get("pg_iconPosition") ?? "start" state playground_showArrow = ctx.url.searchParams.get("pg_showArrow") ?? "true" state playground_underline = ctx.url.searchParams.get("pg_underline") ?? "false" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_variant = ctx.url.searchParams.get("pg_variant") ?? "default" state playground_disabled = ctx.url.searchParams.get("pg_disabled") ?? "false" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Text Link" description = "Styled inline action link with icons, arrows, external state, and disabled handling." } view {
Layout component

Text Link

Styled inline action link with icons, arrows, external state, and disabled handling.

14 props0 slots3 eventsTheme readyResponsive
Interactive playground

Configure Text Link

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

Live preview
Component code
<TextLink
  label="Text Link"
  href="#text-link-demo"
/>
Component props14 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Component usage.wrn
<TextLink
  label="Text Link"
  href="#text-link-demo"
/>
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Component usage.wrn
<TextLink
  label="Compact example"
  href="#text-link-demo"
  icon="icon-[lucide--arrow-right]"
  size="sm"
  variant="secondary"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Component usage.wrn
<TextLink
  label="Advanced example"
  href="#text-link-demo"
  icon="icon-[lucide--trash-2]"
  size="lg"
  variant="success"
/>
Component events

Events

Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.

@clickFires when the component is activated by pointer or keyboard.
@focusFires when the component receives focus.
@blurFires when focus leaves the component.
Event listener.js
const component = document.querySelector('[data-wrn-events]')

component.addEventListener('click', (event) => {
  console.log(event.detail)
})
Component API

Props and configuration

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

PropTypeDefaultRequired
labelstring"Learn more"No
hrefstring"#"No
targetstring""No
relstring""No
externalbooleanfalseNo
iconstring""No
iconPositionstring"start"No
showArrowbooleantrueNo
underlinebooleanfalseNo
sizestring"default"No
colorstring"primary"No
variantstring"default"No
disabledbooleanfalseNo
classstring""No
} }