primevue-mirror/apps/showcase/doc/tooltip/ImportDoc.vue

21 lines
363 B
Vue

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