Documentation / @zerotal/flow / index / Link
Function: Link()
Link(
props):HtmlNode
Defined in: flow/src/components.ts:46
An <a> wired for Flow SPA navigation, with automatic URL-based active state
that you can override or refine per link.
Parameters
props
LinkProps & object
Returns
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
<Link href="/posts" hover>Posts</Link>
<Link href="/dashboard" exact>Dashboard</Link>