11<script setup lang="ts">
22import type { LogoContextMenuItem } from ' ../types'
3- import { ContextMenuContent as Content , ContextMenuItem as Item , ContextMenuPortal as Portal , ContextMenuRoot as Root , ContextMenuSeparator as Separator , ContextMenuTrigger as Trigger } from ' reka-ui'
3+ import { ContextMenu } from ' reka-ui/namespaced '
44import { useData , withBase } from ' vitepress'
55import { computed } from ' vue'
66
@@ -28,8 +28,8 @@ function handleItemClick(item: LogoContextMenuItem) {
2828 </script >
2929
3030<template >
31- <Root v-if =" hasContextMenu" >
32- <Trigger as-child >
31+ <ContextMenu . Root v-if =" hasContextMenu" >
32+ <ContextMenu . Trigger as-child >
3333 <a
3434 flex =" ~ items-center gap-8 shrink-0"
3535 w-full
@@ -43,10 +43,10 @@ function handleItemClick(item: LogoContextMenuItem) {
4343 <span translate-y--1 text-16 font-light tracking-wide >{{ name }}</span >
4444 <span v-if =" theme.betaBadge" text-10 font-semibold absolute right-8 top-7 lh-none px-3 py-6 bg-gradient-blue text-white rounded-4 outline =" 1.5 ~ white/10 offset--1.5" >BETA</span >
4545 </a >
46- </Trigger >
46+ </ContextMenu . Trigger >
4747
48- <Portal >
49- <Content
48+ <ContextMenu . Portal >
49+ <ContextMenu . Content
5050 bg-white
5151 dark:bg-neutral-800
5252 border =" 1 solid neutral-200 dark:neutral-700"
@@ -68,10 +68,10 @@ function handleItemClick(item: LogoContextMenuItem) {
6868 v{{ version }}
6969 </div >
7070
71- <Separator v-if =" showVersion && version && customItems.length > 0" my-4 h-1 bg-neutral-200 dark:bg-neutral-700 />
71+ <ContextMenu . Separator v-if =" showVersion && version && customItems.length > 0" my-4 h-1 bg-neutral-200 dark:bg-neutral-700 />
7272
7373 <!-- Custom Items -->
74- <Item
74+ <ContextMenu . Item
7575 v-for =" (item, index) in customItems"
7676 :key =" index"
7777 px-12
@@ -88,10 +88,10 @@ function handleItemClick(item: LogoContextMenuItem) {
8888 >
8989 <div v-if =" item.icon" :class =" item.icon" text-16 />
9090 <span >{{ item.label }}</span >
91- </Item >
92- </Content >
93- </Portal >
94- </Root >
91+ </ContextMenu . Item >
92+ </ContextMenu . Content >
93+ </ContextMenu . Portal >
94+ </ContextMenu . Root >
9595
9696 <a
9797 v-else
0 commit comments