> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# veryfront/router

> React router exports for client navigation and route context.

## Import

```ts theme={null}
import {
  useRouter,
  Link,
  RouterProvider,
  Router,
} from "veryfront/router";
```

## Examples

```tsx theme={null}
import { Link, RouterProvider, useRouter } from "veryfront/router";
```

## Exports

### Components

| Name             | Description                                                          | Source                                                                                         |
| ---------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `Link`           | Renders an anchor element annotated for Veryfront prefetch handling. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L172) |
| `Router`         | Provides the router context value used by `useRouter()`.             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L155) |
| `RouterProvider` | Provides the router context value used by `useRouter()`.             | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L155) |

### Functions

| Name        | Description                       | Source                                                                                         |
| ----------- | --------------------------------- | ---------------------------------------------------------------------------------------------- |
| `useRouter` | Reads the current router context. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L167) |

### Types

| Name                  | Description                                 | Source                                                                                        |
| --------------------- | ------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `LinkProps`           | Props accepted by `<Link>`.                 | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L30) |
| `RouterProviderProps` | Props accepted by `<RouterProvider>`.       | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L36) |
| `RouterValue`         | Router state exposed through `useRouter()`. | [source](https://github.com/veryfront/veryfront-code/blob/main/src/react/runtime/core.ts#L4)  |
