Nnextop / app

<Link>nextop-app/link

A drop-in wrapper around next/link that adds desktop-aware navigation.

import Link from 'nextop-app/link'

Props = all next/link props plus:

PropTypeBehavior
isExternalboolean (default false)Opens href in the system browser via window.nextop.openExternal.
targetstringWhen "_blank", opens href in a new internal Electron window via the open-internal-window IPC channel.
internalOptionsInternalWindowOptionsBrowserWindow options for the internal window (size, position, webPreferences, etc.).
children, className, …Forwarded to next/link.
// External — opens in the user's default browser
<Link isExternal href="https://github.com/FlyingTurkman/nextop-app">GitHub</Link>
// Internal new window, sized
<Link href="/settings" target="_blank" internalOptions={{ width: 480, height: 640 }}>
Settings
</Link>
// Normal in-app navigation (plain next/link behavior)
<Link href="/dashboard">Dashboard</Link>

InternalWindowOptions mirrors Electron's BrowserWindowConstructorOptions (width, height, x, y, resizable, frame, transparent, backgroundColor, alwaysOnTop, webPreferences, …). Internal windows are created with the secure baseline (contextIsolation: true, nodeIntegration: false, sandbox: true) and the NextOP preload.