Skip to content

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

feat(ui): add Pro label to navbar items in mobile view (#589)

Harish7ab93fb8aafd
diff --git a/components/mobile-nav.tsx b/components/mobile-nav.tsx
index 54c2e595..cf7668a3 100644
--- a/components/mobile-nav.tsx
+++ b/components/mobile-nav.tsx
@@ -102,6 +102,11 @@ export function MobileNav() {
{item.label}
</span>
)}
+ {item.paid && (
+ <span className="ml-2 rounded-md bg-[#4ade80] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">
+ Pro
+ </span>
+ )}
</MobileLink>
) : (
<span