primevue-mirror/doc/icons/BasicDoc.vue

30 lines
830 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>PrimeIcons use the <i>pi pi-&#123;icon&#125;</i> syntax such as <i>pi pi-check</i>. A standalone icon can be displayed using an element such as <i>i</i> or <i>span</i></p>
</DocSectionText>
2024-05-20 12:14:38 +00:00
<div class="card flex justify-center gap-4">
2023-02-28 08:29:30 +00:00
<i class="pi pi-check"></i>
<i class="pi pi-times"></i>
<span class="pi pi-search"></span>
<span class="pi pi-user"></span>
</div>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<i class="pi pi-check"></i>
2023-02-28 08:29:30 +00:00
<i class="pi pi-times"></i>
<span class="pi pi-search"></span>
2023-09-22 12:54:14 +00:00
<span class="pi pi-user"></span>
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>