Button badge demo update

pull/4683/head
Cagatay Civici 2023-10-23 23:22:58 +03:00
parent b011a53de7
commit 6da88e001b
1 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,7 @@
</DocSectionText>
<div class="card flex flex-wrap justify-content-center gap-2">
<Button type="button" label="Emails" badge="8" />
<Button type="button" label="Messages" icon="pi pi-users" severity="warning" badge="8" badgeClass="p-badge-danger" />
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeClass="p-badge-info" />
</div>
<DocSectionCode :code="code" />
</template>
@ -16,30 +16,28 @@ export default {
code: {
basic: `
<Button type="button" label="Emails" badge="8" />
<Button type="button" label="Messages" icon="pi pi-users" severity="warning" badge="8" badgeClass="p-badge-danger" />
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeClass="p-badge-info" />
`,
options: `
<template>
<div class="card flex flex-wrap justify-content-center gap-2">
<Button type="button" label="Emails" badge="8" />
<Button type="button" label="Messages" icon="pi pi-users" severity="warning" badge="8" badgeClass="p-badge-danger" />
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeClass="p-badge-info" />
</div>
</template>
<script>
<\/script>
`,
composition: `
<template>
<div class="card flex flex-wrap justify-content-center gap-2">
<Button type="button" label="Emails" badge="8" />
<Button type="button" label="Messages" icon="pi pi-users" severity="warning" badge="8" badgeClass="p-badge-danger" />
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeClass="p-badge-info" />
</div>
</template>
<script setup>
<\/script>
`
}