primevue-mirror/doc/tooltip/ImportDoc.vue

19 lines
377 B
Vue

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