primevue-mirror/doc/button/pt/PTDoc.vue

48 lines
1.1 KiB
Vue
Raw Normal View History

2023-04-28 09:47:17 +00:00
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex flex-wrap gap-3 justify-content-center">
<Button label="Submit" icon="pi pi-check" :pt="{ root: { class: 'bg-indigo-600 border-indigo-600' } }" />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Button label="Submit" icon="pi pi-check"
2023-04-28 09:47:17 +00:00
:pt="{
root: { class: 'bg-indigo-600 border-indigo-600' }
}"
2023-10-15 09:38:39 +00:00
/>
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-04-28 09:47:17 +00:00
<div class="card flex flex-wrap gap-3 justify-content-center">
<Button label="Submit" icon="pi pi-check"
:pt="{
root: { class: 'bg-indigo-600 border-indigo-600' }
}"
/>
</div>
2023-10-15 09:38:39 +00:00
</template>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-04-28 09:47:17 +00:00
<div class="card flex flex-wrap gap-3 justify-content-center">
<Button label="Submit" icon="pi pi-check"
:pt="{
root: { class: 'bg-indigo-600 border-indigo-600' }
}"
/>
</div>
2023-11-01 14:36:59 +00:00
</template>
`
2023-04-28 09:47:17 +00:00
}
};
}
};
</script>