[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Link

# Function: Link()

> **Link**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:46](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L46)

An `<a>` wired for Flow SPA navigation, with automatic URL-based active state
that you can override or refine per link.

## Parameters

### props

[`LinkProps`](../interfaces/LinkProps) & `object`

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

`hover` prefetches the target on hover; `current` forces (`true`) or suppresses
(`false`) the active state instead of deriving it from the URL; `exact` restricts
the automatic active state to an exact path match. Any other props pass through to
the `<a>`.

## Example

```tsx
<Link href="/posts" hover>Posts</Link>
<Link href="/dashboard" exact>Dashboard</Link>
```
