primevue-mirror/apps/showcase/doc/configuration/RippleDoc.vue

26 lines
661 B
Vue
Raw Permalink Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Ripple is an optional animation for the supported components such as buttons. It is disabled by default and needs to be enabled at your app's entry file (e.g. main.js) during the PrimeVue setup.</p>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
2023-02-28 08:29:30 +00:00
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
import { createApp } from "vue";
2023-02-28 08:29:30 +00:00
import PrimeVue from "primevue/config";
const app = createApp(App);
2023-09-22 12:54:14 +00:00
app.use(PrimeVue, { ripple: true });
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>