Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

remove nav navigation

Sushmithamallesha16bc33a4dd1
diff --git a/fumadocs/components/nav-tabs.tsx b/fumadocs/components/nav-tabs.tsx
new file mode 100644
index 000000000..f4e79ff5f
--- /dev/null
+++ b/fumadocs/components/nav-tabs.tsx
@@ -0,0 +1,38 @@
+'use client';
+
+import Link from 'next/link';
+import { usePathname } from 'next/navigation';
+
+const tabs = [
+ { href: '/docs', label: 'Docs', exact: true },
+ { href: '/docs/api', label: 'API' },
+ { href: '/docs/examples', label: 'Examples' },
+];
+
+export function NavTabs() {
+ const pathname = usePathname();
+
+ const isActive = (href: string, exact?: boolean) => {
+ if (exact) {
+ // For "Docs", only active if exactly /docs or /docs/ but not /docs/api
+ return pathname === href || pathname === `${href}/` ||
+ (pathname.startsWith('/docs') && !pathname.startsWith('/docs/api') && !pathname.startsWith('/docs/examples'));
+ }
+ return pathname.startsWith(href);
+ };
+
+ return (
+ <div className="nav-tabs">
+ {tabs.map((tab) => (
+ <Link
+ key={tab.href}
+ href={tab.href}
+ className={`nav-tab ${isActive(tab.href, tab.exact) ? 'active' : ''}`}
+ >
+ {tab.label}
+ </Link>
+ ))}
+ </div>
+ );
+}
+
diff --git a/fumadocs/components/top-nav.tsx b/fumadocs/components/top-nav.tsx
new file mode 100644
index 000000000..29181f9a0
--- /dev/null
+++ b/fumadocs/components/top-nav.tsx
@@ -0,0 +1,92 @@
+'use client';
+
+import Link from 'next/link';
+import Image from 'next/image';
+import { usePathname } from 'next/navigation';
+
+const navItems = [
+ { href: '/docs', label: 'Docs' },
+ { href: '/docs/api', label: 'API' },
+ { href: '/docs/examples', label: 'Examples' },
+];
+
+export function TopNav() {
+ const pathname = usePathname();
+
+ const isActive = (href: string) => {
+ if (href === '/docs') {
+ return pathname === '/docs' ||
+ (pathname.startsWith('/docs') &&
+ !pathname.startsWith('/docs/api') &&
+ !pathname.startsWith('/docs/examples'));
+ }
+ return pathname.startsWith(href);
+ };
+
+ return (
+ <header className="sticky top-0 z-50 border-b border-fd-border bg-fd-background">
+ <div className="flex h-14 items-center px-6 gap-6">
+ {/* Logo */}
+ <Link href="/" className="flex items-center">
+ <Image
+ src="/Composio Logo.svg"
+ alt="Composio"
+ width={110}
+ height={20}
+ className="dark:hidden"
+ priority
+ />
+ <Image
+ src="/Composio Logo Dark.svg"
+ alt="Composio"
+ width={110}
+ height={20}
+ className="hidden dark:block"
+ priority
+ />
+ </Link>
+
+ {/* Nav Items */}
+ <nav className="flex items-center gap-1">
+ {navItems.map((item) => (
+ <Link
+ key={item.href}
+ href={item.href}
+ className={`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${
+ isActive(item.href)
+ ? 'text-[var(--orange)]'
+ : 'text-fd-muted-foreground hover:text-fd-foreground'
+ }`}
+ >
+ {item.label}
+ </Link>
+ ))}
+ </nav>
+
+ {/* Spacer */}
+ <div className="flex-1" />
+
+ {/* Right side links */}
+ <div className="flex items-center gap-4">
+ <Link
+ href="https://github.com/ComposioHQ/composio"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-sm text-fd-muted-foreground hover:text-fd-foreground"
+ >
+ GitHub
+ </Link>
+ <Link
+ href="https://app.composio.dev"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-sm text-fd-muted-foreground hover:text-fd-foreground"
+ >
+ Platform
+ </Link>
+ </div>
+ </div>
+ </header>
+ );
+}
+