Link
Link(
__namedParameters,children?):VirtualElement|VirtualElement[]
Defined in: router/link.ts:31
A link component that navigates using the app router, preventing the default behavior. Anchor elements resulting from this component will have the class ‘router-link’.
Parameters
__namedParameters
LinkProps
children?
any
Returns
VirtualElement | VirtualElement[]
Throws
If being called outside of a router context
using LinkProps
Example
<Link to="/categories">Categories</Link> // A link to the categories route<Link to="/categories" className="link">Categories</Link> // A link to the categories route with a class of link