PXD
v0.2.1-dev

Link Button

Inherit button style links.

Default

LinkButton extends the Button component.

<template>
  <PStack>
    <PLinkButton href="javascript:;">button</PLinkButton>
    <PLinkButton href="javascript:;"> slot button </PLinkButton>
  </PStack>
</template>

Set variant="link" to convert it into a link in normal text form.

<template>
  <PStack>
    <PLinkButton href="javascript:;" variant="link">link button</PLinkButton>
  </PStack>
</template>

Props

NameTypeDefaultDescription
hrefstring-Paths starting with / or # render as router-link when the host registers one, otherwise as a; an empty value renders a plain button
align'left' | 'center' | 'right'leftHorizontal alignment of the button content
target'_blank' | '_self' | '_parent' | '_top'_selfBrowsing context of the link, e.g. _blank opens a new tab
external-iconboolean-Show an external link icon in the suffix

Events

NameTypeDescription
click(event: MouseEvent) => voidEmitted when the link is clicked.

Slots

NameDescription
defaultDefault slot

Source

Source