primevue-mirror/doc/focustrap/ImportDoc.vue

20 lines
386 B
Vue

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