Skip to Content

@cfxdevkit/react


@cfxdevkit/react / NavLink

Interface: NavLink

Defined in: components/nav/AppNavBar.tsx:31

Descriptor for a navigation link in the AppNavBar.

Properties

adminOnly?

optional adminOnly: boolean

Defined in: components/nav/AppNavBar.tsx:35

When true the link is omitted from the nav. Consumers compute visibility before passing links in (see useIsAdmin from @cfxdevkit/wallet-connect).


href

href: string

Defined in: components/nav/AppNavBar.tsx:32

The link target URL.


icon?

optional icon: ReactNode

Defined in: components/nav/AppNavBar.tsx:34

Optional leading icon (any ReactNode, e.g. a lucide-react icon). The consumer supplies icons so this package has no icon-library dependency.


label

label: string

Defined in: components/nav/AppNavBar.tsx:33

Visible link text.