useTanStackRouterNavigate
{@link NavigateFn} backed by the TanStack router. Pass it as `ResourcePage`'s `onNavigate` (or anywhere a `NavigateFn` is accepted) for client-side navigation instead of a full page load. Absolute URLs (`https://…`, `mailto:…`, `//host/…`) leave the app with a document navigation, as `defaultNavigate` does.
packages/ui/src/router/tanstack-router.tsx
@marktiderman/genesis-ui/router/tanstack-routerimport { useTanStackRouterNavigate } from "@marktiderman/genesis-ui/router/tanstack-router";react-docgen-typescript.useTanStackRouterNavigate
{@link NavigateFn} backed by the TanStack router. Pass it as `ResourcePage`'s `onNavigate` (or anywhere a `NavigateFn` is accepted) for client-side navigation instead of a full page load. Absolute URLs (`https://…`, `mailto:…`, `//host/…`) leave the app with a document navigation, as `defaultNavigate` does.
No declared props.
useTanStackRouterSearchParams
{@link SearchParamsAdapter} backed by the TanStack router's location. Pass it as `useDataFilters(key, defs, { searchParams })` so URL-synced filters go through the router (loaders and `validateSearch` run, back/forward stays in sync) instead of the raw History API. Like the default browser adapter, an update keeps the current path and `#hash`.
No declared props.
useTanStackRouterActivePath
The current location as `pathname + search + hash`, the shape `AppShell`'s `activePath` expects, so nav items whose `to` names a query or hash (`/admin?tab=users`, `/settings#profile`) highlight correctly. Paths are the router's (basepath removed), matching the `to` your nav items use.
No declared props.
TanStackRouterLink
{@link LinkComponent} for TanStack Router. Pass it as `linkComponent` to `AppShell`, `StatCard` and anything else that takes one. In-app hrefs navigate client-side (query and hash included, parsed by the router's `parseSearch`); absolute URLs render a plain anchor. `testID` is forwarded as `data-testid`, as `DefaultLink` does, and the active state stays the one Genesis passes: TanStack's own `aria-current` / `active` class are not applied. It forwards `ref` and unknown props, so it works as the child of a Radix `asChild` (`<Button asChild>`).
No declared props.