primevue-mirror/doc/button/TextDoc.vue

65 lines
2.1 KiB
Vue

<template>
<DocSectionText v-bind="$attrs">
<p>Text buttons are displayed as textual elements.</p>
</DocSectionText>
<div class="card flex justify-content-center flex-wrap gap-3">
<Button label="Primary" text />
<Button label="Secondary" severity="secondary" text />
<Button label="Success" severity="success" text />
<Button label="Info" severity="info" text />
<Button label="Warning" severity="warning" text />
<Button label="Help" severity="help" text />
<Button label="Danger" severity="danger" text />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<Button label="Primary" text />
<Button label="Secondary" severity="secondary" text />
<Button label="Success" severity="success" text />
<Button label="Info" severity="info" text />
<Button label="Warning" severity="warning" text />
<Button label="Help" severity="help" text />
<Button label="Danger" severity="danger" text />`,
options: `
<template>
<div class="card flex justify-content-center flex-wrap gap-3">
<Button label="Primary" text />
<Button label="Secondary" severity="secondary" text />
<Button label="Success" severity="success" text />
<Button label="Info" severity="info" text />
<Button label="Warning" severity="warning" text />
<Button label="Help" severity="help" text />
<Button label="Danger" severity="danger" text />
</div>
</template>
<script>
<\/script>`,
composition: `
<template>
<div class="card flex justify-content-center flex-wrap gap-3">
<Button label="Primary" text />
<Button label="Secondary" severity="secondary" text />
<Button label="Success" severity="success" text />
<Button label="Info" severity="info" text />
<Button label="Warning" severity="warning" text />
<Button label="Help" severity="help" text />
<Button label="Danger" severity="danger" text />
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>