primevue-mirror/doc/tooltip/ImportDoc.vue

20 lines
374 B
Vue

<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode import hideCodeSandbox hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import Tooltip from 'primevue/tooltip';
app.directive('tooltip', Tooltip);`
}
};
}
};
</script>