⬅️ Back to Table of Contents
📄 component.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
2 |
📦 Imports |
10 |
📊 Variables & Constants |
1 |
🟢 Vue Composition API |
1 |
📐 Interfaces |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/integrations/useFocusTrap/component.ts
📦 Imports
Name |
Source |
RenderableComponent |
@vueuse/core |
FocusTrap |
focus-trap |
UseFocusTrapOptions |
./index |
unrefElement |
@vueuse/core |
createFocusTrap |
focus-trap |
deepRef |
vue |
defineComponent |
vue |
h |
vue |
onScopeDispose |
vue |
watch |
vue |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
trap |
undefined | FocusTrap |
let/var |
*not shown* |
✗ |
Vue Composition API
Name |
Type |
Reactive Variables |
Composables |
watch |
watch |
none |
none |
Functions
activate(): any
Code
() => trap && trap.activate()
deactivate(): any
Code
() => trap && trap.deactivate()
Interfaces
ComponentUseFocusTrapOptions
Interface Code
export interface ComponentUseFocusTrapOptions extends RenderableComponent {
options?: UseFocusTrapOptions
}
Properties
Name |
Type |
Optional |
Description |
options |
UseFocusTrapOptions |
✓ |
|