primevue-mirror/doc/ripple/DefaultDoc.vue

41 lines
1.4 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Ripple is enabled by adding add <i>p-ripple</i> class to the target and attach the directive with the v- prefix..</p>
</DocSectionText>
<div class="card flex justify-content-center align-items-center">
<div v-ripple 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 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 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 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>