File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
docs/vitepress-theme/guide
packages/nimiq-vitepress-theme/src Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -133,16 +133,19 @@ export const themeConfig = {
133133 items: [
134134 {
135135 label: ' View on GitHub' ,
136+ icon: ' i-tabler:brand-github' ,
136137 href: ' https://github.com/your-org/your-repo'
137138 },
138139 {
139140 label: ' Report Issue' ,
141+ icon: ' i-tabler:bug' ,
140142 onClick : () => {
141143 window .open (' https://github.com/your-org/your-repo/issues/new' , ' _blank' )
142144 }
143145 },
144146 {
145147 label: ' Documentation' ,
148+ icon: ' i-tabler:book' ,
146149 href: ' https://docs.example.com'
147150 }
148151 ]
@@ -162,6 +165,7 @@ export const themeConfig = {
162165- Custom menu items to display
163166- Each item can have:
164167 - ` label ` (required): Text to display
168+ - ` icon ` (optional): Icon class (e.g., ` i-tabler:brand-github ` , ` i-nimiq:star ` )
165169 - ` href ` (optional): URL to open in a new tab
166170 - ` onClick ` (optional): Function to execute when clicked
167171
Original file line number Diff line number Diff line change @@ -115,9 +115,11 @@ if (typeof window !== 'undefined') {
115115 hover =" bg-neutral-100 dark:bg-neutral-700"
116116 transition-colors
117117 cursor-pointer
118+ flex =" ~ items-center gap-8"
118119 @click =" handleItemClick(item)"
119120 >
120- {{ item.label }}
121+ <div v-if =" item.icon" :class =" item.icon" text-16 />
122+ <span >{{ item.label }}</span >
121123 </button >
122124 </div >
123125 </Teleport >
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export interface OutlineAction {
4848
4949export interface LogoContextMenuItem {
5050 label : string
51+ icon ?: string
5152 onClick ?: ( ) => void
5253 href ?: string
5354}
You can’t perform that action at this time.
0 commit comments