Link button

Interactive documentation for the link button component. Change props in the playground, inspect states, and copy the generated example.

clicks: 0

Preview

Code

<LinkButton
  to="https://google.com"
  label="Link"
  leading-icon="lucide:heart"
  trailing-icon="lucide:arrow-right"
>
  Link
</LinkButton>

States

Examples for link mode, button mode, and disabled state.

Button

Props

This table matches the current LinkButtonProps interface.

PropTypeDefaultDescription
as'link' | 'button''link'Controls which element is rendered. link renders NuxtLink, button renders a native button.
tostringundefinedTarget route or URL for NuxtLink. Ignored when as="button" or when disabled is true.
labelstringundefinedFallback text rendered inside the default slot when no slot content is provided.
target'_self' | '_blank' | '_parent' | '_top'undefinedNative target attribute passed to NuxtLink.
size's' | 'm' | 'l' | 'xl' | '2xl' | '3xl''m'Controls gap, vertical padding, font size, font weight, and icon size.
color'cocaine' | 'midnight''midnight'Text and underline color variant.
leadingIconstringundefinedIcon rendered before the label through CustomIcon.
trailingIconstringundefinedIcon rendered after the label through CustomIcon.
disabledbooleanfalseDisables interaction. Link mode removes the to prop, button mode sets the native disabled attribute.