primevue-mirror/pages/badge/index.vue

54 lines
2.0 KiB
Vue
Raw Normal View History

2022-09-09 20:41:18 +00:00
<template>
<div>
2022-12-19 11:57:07 +00:00
<Head>
<Title>Vue Badge Component</Title>
<Meta name="description" content="Badge is a small status indicator for another element." />
</Head>
2022-09-09 20:41:18 +00:00
<div class="content-section introduction">
<div class="feature-intro">
<h1>Badge</h1>
<p>Badge is a small status indicator for another element.</p>
</div>
<AppDemoActions />
</div>
<div class="content-section implementation">
<div class="card">
<h5>Numbers</h5>
2022-12-08 12:26:57 +00:00
<Badge value="2" class="mr-2" aria-label="Tabable Primary Badge" tabindex="0"></Badge>
2022-09-09 20:41:18 +00:00
<Badge value="8" severity="success" class="mr-2"></Badge>
<Badge value="4" severity="info" class="mr-2"></Badge>
<Badge value="12" severity="warning" class="mr-2"></Badge>
<Badge value="3" severity="danger"></Badge>
<h5 class="mb-4">Positioned Badge</h5>
2022-12-08 12:26:57 +00:00
<i v-badge="2" class="pi pi-bell mr-4 p-text-secondary" style="font-size: 2rem"></i>
<i v-badge.danger="'10+'" class="pi pi-calendar mr-4 p-text-secondary" style="font-size: 2rem"></i>
<i v-badge.danger class="pi pi-envelope p-text-secondary" style="font-size: 2rem"></i>
2022-09-09 20:41:18 +00:00
<h5>Button Badge</h5>
<Button type="button" label="Emails" badge="8" class="mr-2" />
<Button type="button" label="Messages" icon="pi pi-users" class="p-button-warning" badge="8" badgeClass="p-badge-danger" />
<h5>Sizes</h5>
<Badge value="2" class="mr-2"></Badge>
<Badge value="4" class="mr-2" size="large" severity="warning"></Badge>
<Badge value="6" size="xlarge" severity="success"></Badge>
</div>
</div>
<BadgeDoc />
</div>
</template>
<script>
import BadgeDoc from './BadgeDoc';
export default {
components: {
BadgeDoc: BadgeDoc
}
};
</script>