docs(app): use tabs to switch framework & module (#2837)

This commit is contained in:
Benjamin Canac
2024-12-05 19:01:40 +01:00
committed by GitHub
parent a938d24f90
commit 984bb0899c
7 changed files with 41 additions and 69 deletions

View File

@@ -1,6 +1,4 @@
import { createSharedComposable } from '@vueuse/core'
function _useSharedData() {
export function useSharedData() {
const framework = useCookie('nuxt-ui-framework', { default: () => 'nuxt' })
const frameworks = computed(() => [{
label: 'Nuxt',
@@ -36,5 +34,3 @@ function _useSharedData() {
modules
}
}
export const useSharedData = createSharedComposable(_useSharedData)