primevue-mirror/doc/ripple/pt/PTDoc.vue

75 lines
1.8 KiB
Vue

<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<div class="card flex justify-content-center align-items-center">
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
class="p-ripple bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold"
>
Default
</div>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
class="p-ripple bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold"
>
Default
</div>`,
options: `
<template>
<div class="card card-container flex justify-content-center align-items-center">
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
class="p-ripple bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold"
>
Default
</div>
</div>
</template>
<script>
<\/script>`,
composition: `
<template>
<div class="card card-container flex justify-content-center align-items-center">
<div
v-ripple="{
pt: {
root: 'bg-yellow-400'
}
}"
class="p-ripple bg-primary flex select-none justify-content-center align-items-center shadow-2 border-round p-6 font-bold"
>
Default
</div>
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>