mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 00:15:05 +01:00
feat(module): add support for vue using unplugin (#2416)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
8
src/runtime/vue/plugins/color-mode.ts
Normal file
8
src/runtime/vue/plugins/color-mode.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { useDark } from '@vueuse/core'
|
||||
import type { Plugin } from 'vue'
|
||||
|
||||
export default {
|
||||
install() {
|
||||
useDark()
|
||||
}
|
||||
} satisfies Plugin
|
||||
8
src/runtime/vue/plugins/head.ts
Normal file
8
src/runtime/vue/plugins/head.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { createHead } from '@unhead/vue'
|
||||
import type { Plugin } from 'vue'
|
||||
|
||||
export default {
|
||||
install(app) {
|
||||
app.use(createHead())
|
||||
}
|
||||
} satisfies Plugin
|
||||
Reference in New Issue
Block a user