1
0
Fork 0
mirror of https://github.com/primefaces/primevue.git synced 2025-05-09 00:42:36 +00:00
primevue-mirror/doc/progressspinner/CustomDoc.vue
2023-03-27 11:10:09 +03:00

56 lines
1.7 KiB
Vue

<template>
<DocSectionText v-bind="$attrs">
<p>ProgressSpinner can be customized with styling property like <i>style</i>, <i>strokeWidth</i> <i>fill</i> and <i>animationDuration</i>.</p>
</DocSectionText>
<div class="card flex justify-content-center">
<ProgressSpinner style="width: 50px; height: 50px" strokeWidth="8" fill="var(--surface-ground)" animationDuration=".5s" aria-label="Custom ProgressSpinner" />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<ProgressSpinner style="width: 50px; height: 50px" strokeWidth="8" fill="var(--surface-ground)"
animationDuration=".5s" aria-label="Custom ProgressSpinner" />`,
options: `
<template>
<div class="card flex justify-content-center">
<ProgressSpinner style="width: 50px; height: 50px" strokeWidth="8" fill="var(--surface-ground)"
animationDuration=".5s" aria-label="Custom ProgressSpinner" />
</div>
</template>
<script>
<\/script>`,
composition: `
<template>
<div class="card flex justify-content-center">
<ProgressSpinner style="width: 50px; height: 50px" strokeWidth="8" fill="var(--surface-ground)"
animationDuration=".5s" aria-label="Custom ProgressSpinner" />
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>
<style scoped>
::v-deep(.styled-box-green .p-ink) {
background: rgba(75, 175, 80, 0.3);
}
::v-deep(.styled-box-orange .p-ink) {
background: rgba(#ffc106, 0.3);
}
::v-deep(.styled-box-purple .p-ink) {
background: rgba(#9c27b0, 0.3);
}
</style>