Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: update header

Dillion Vermaabd8263bc34d
diff --git a/components/main-nav.tsx b/components/main-nav.tsx
index 7cbac9db..abe777ad 100644
--- a/components/main-nav.tsx
+++ b/components/main-nav.tsx
@@ -38,7 +38,12 @@ export function MainNav() {
: "text-foreground/60",
)}
>
- {item.title}
+ <span className="shrink-0">{item.title}</span>
+ {item.label && (
+ <span className="ml-2 rounded-md bg-[#FFBD7A] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">
+ {item.label}
+ </span>
+ )}
{item.external && <ExternalLinkIcon className="ml-2 size-4" />}
</Link>
))}
diff --git a/config/docs.ts b/config/docs.ts
index 0085feb4..86071583 100644
--- a/config/docs.ts
+++ b/config/docs.ts
@@ -11,15 +11,15 @@ export const docsConfig: DocsConfig = {
title: "Components",
href: "/components",
},
- {
- title: "Showcase",
- href: "/showcase",
- },
{
title: "Templates",
href: "https://pro.magicui.design",
- external: true,
event: "header_cta_clicked",
+ label: "New",
+ },
+ {
+ title: "Showcase",
+ href: "/showcase",
},
],
sidebarNav: [