diff --git a/app.config.ts b/app.config.ts index 368551e7..cee9d494 100644 --- a/app.config.ts +++ b/app.config.ts @@ -39,11 +39,13 @@ export default defineAppConfig({ title: 'Getting Started', to: '/getting-started', description: 'Start building your document with shadcn-docs-nuxt', + icon: 'lucide:book', }, { title: 'API', to: '/api', description: 'Discover the configurations and exposed APIs.', target: '_self', + icon: 'lucide:code', }], }, { title: 'Credits', diff --git a/components/layout/Header/Nav.vue b/components/layout/Header/Nav.vue index 4fe20dd7..ad21ce67 100644 --- a/components/layout/Header/Nav.vue +++ b/components/layout/Header/Nav.vue @@ -12,13 +12,17 @@ -
- {{ link.title }} -
-
- {{ link.description }} + + +
+
+ {{ link.title }} +
+
+ {{ link.description }} +
diff --git a/components/layout/Header/NavMobileItem.vue b/components/layout/Header/NavMobileItem.vue index 091b55df..37908b03 100644 --- a/components/layout/Header/NavMobileItem.vue +++ b/components/layout/Header/NavMobileItem.vue @@ -17,13 +17,17 @@ -
- {{ link.title }} -
-
- {{ link.description }} + + +
+
+ {{ link.title }} +
+
+ {{ link.description }} +
diff --git a/content/3.api/1.configuration/1.shadcn-docs.md b/content/3.api/1.configuration/1.shadcn-docs.md index 8ab67988..10151a29 100644 --- a/content/3.api/1.configuration/1.shadcn-docs.md +++ b/content/3.api/1.configuration/1.shadcn-docs.md @@ -40,7 +40,7 @@ interface ILink { interface INav { title: string; - links?: (ILink & { description: string })[]; + links?: (ILink & { description: string; icon: string })[]; to?: string; target?: Target; } diff --git a/types/index.d.ts b/types/index.d.ts index 74535f89..9a6f88bb 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -45,6 +45,7 @@ interface DefaultConfig { to: string; target: string; description: string; + icon?: string; })[]; })[]; links: ({