primevue-mirror/apps/showcase/doc/icons/SpinDoc.vue

26 lines
705 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Special <i>pi-spin</i> class applies infinite rotation to an icon.</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-spin pi-spinner" style="font-size: 2rem"></i>
<i class="pi pi-spin pi-cog" style="font-size: 2rem"></i>
</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-spin pi-spinner" style="font-size: 2rem"></i>
<i class="pi pi-spin pi-cog" style="font-size: 2rem"></i>
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>