useReactRouterNavigate
{@link NavigateFn} backed by React Router's `useNavigate()`. 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/react-router.tsx
@marktiderman/genesis-ui/router/react-routerimport { useReactRouterNavigate } from "@marktiderman/genesis-ui/router/react-router";react-docgen-typescript.useReactRouterNavigate
{@link NavigateFn} backed by React Router's `useNavigate()`. 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.
useReactRouterSearchParams
{@link SearchParamsAdapter} backed by React Router's location. Pass it as `useDataFilters(key, defs, { searchParams })` so URL-synced filters go through the router (loaders re-run, back/forward stays in sync) instead of the raw History API. Like the default browser adapter, an update keeps the current `#hash`.
No declared props.
useReactRouterActivePath
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.
No declared props.
ReactRouterLink
{@link LinkComponent} for React Router. Pass it as `linkComponent` to `AppShell`, `StatCard` and anything else that takes one. `href` maps to React Router's `to` (query and hash included), and `testID` is forwarded as `data-testid`, as `DefaultLink` does. Genesis decides the active state and passes `aria-current` itself. This is a plain `Link`, not a `NavLink`, so the router never adds a second opinion. It forwards `ref` and unknown props, so it works as the child of a Radix `asChild` (`<Button asChild>`).
No declared props.