primevue-mirror/doc/button/LinkDoc.vue

38 lines
803 B
Vue

<template>
<DocSectionText v-bind="$attrs">
<p>A button can be rendered as a link as well.</p>
</DocSectionText>
<div class="card flex justify-content-center">
<Button label="Link" link />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `<Button label="Link" link />`,
options: `<template>
<div class="card flex justify-content-center">
<Button label="Link" link />
</div>
</template>
<script>
<\/script>`,
composition: `<template>
<div class="card flex justify-content-center">
<Button label="Link" link />
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>