Skip to content

Commit

Permalink
updated button badgedoc example
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 9, 2024
1 parent c5561cf commit c9351b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/showcase/doc/button/badgedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { Code } from '@domain/code';
<p>Buttons have built-in <i>badge</i> support with badge and <i>badgeClass</i> properties.</p>
</app-docsectiontext>
<div class="card flex justify-content-center flex-wrap gap-3">
<p-button label="Emails" badge="8" styleClass="m-0" />
<p-button label="Messages" icon="pi pi-users" badge="8" badgeClass="p-badge-danger" styleClass="m-0" outlined="true" />
<p-button label="Emails" badge="2" styleClass="m-0" />
<p-button label="Messages" icon="pi pi-users" badge="2" badgeClass="p-badge-contrast" styleClass="m-0" outlined="true" />
</div>
<app-code [code]="code" selector="button-badge-demo"></app-code>
`
Expand All @@ -20,17 +20,17 @@ export class BadgeDoc {
<p-button
label="Messages"
icon="pi pi-users"
badge="8"
badgeClass="p-badge-danger"
badge="2"
badgeClass="p-badge-contrast"
outlined="true" />`,

html: `<div class="card flex justify-content-center flex-wrap gap-3">
<p-button label="Emails" badge="8" />
<p-button label="Emails" badge="2" />
<p-button
label="Messages"
icon="pi pi-users"
badge="8"
badgeClass="p-badge-danger"
badgeClass="p-badge-contrast"
outlined="true" />
</div>`,

Expand Down

0 comments on commit c9351b4

Please sign in to comment.