MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / TopLevelNavItem

Function TopLevelNavItem

src/components/Header.tsx:17–34  ·  view source on GitHub ↗
({
  href,
  children,
}: {
  href: string
  children: React.ReactNode
})

Source from the content-addressed store, hash-verified

15import { ThemeToggle } from './ThemeToggle'
16
17function TopLevelNavItem({
18 href,
19 children,
20}: {
21 href: string
22 children: React.ReactNode
23}) {
24 return (
25 <li>
26 <Link
27 href={href}
28 className="whitespace-nowrap text-sm leading-5 text-zinc-600 transition hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white"
29 >
30 {children}
31 </Link>
32 </li>
33 )
34}
35
36export const Header = forwardRef<
37 React.ElementRef<'div'>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected