⬅️ Back to Table of Contents
📄 useDark/component
📊 Analysis Summary
| Metric |
Count |
| 📦 Imports |
9 |
| 🟢 Vue Composition API |
1 |
| 📐 Interfaces |
2 |
📚 Table of Contents
🛠️ File Location:
📂 packages/core/useDark/component.ts
📦 Imports
| Name |
Source |
UseDarkOptions |
@vueuse/core |
UseDarkReturn |
@vueuse/core |
ToggleFn |
@vueuse/shared |
Reactive |
vue |
SlotsType |
vue |
useDark |
@vueuse/core |
useToggle |
@vueuse/shared |
defineComponent |
vue |
reactive |
vue |
Vue Composition API
| Name |
Type |
Reactive Variables |
Composables |
reactive |
reactive |
none |
none |
Interfaces
UseDarkProps
Interface Code
export interface UseDarkProps extends UseDarkOptions {}
UseDarkSlots
Interface Code
interface UseDarkSlots {
default: (data: Reactive<{
isDark: UseDarkReturn
toggleDark: ToggleFn
}>) => any
}
Properties
| Name |
Type |
Optional |
Description |
default |
(data: Reactive<{ isDark: UseDarkReturn toggleDark: ToggleFn }>) => any |
✗ |
not shown |
Generated by Syntax Scribe