Skip to content

API Documentation / _RouterLinkI

Interface: _RouterLinkI

Typed version of the RouterLink component. Its generic defaults to the typed router, so it can be inferred automatically for JSX.

Constructors

constructor

new _RouterLinkI(): Object

Returns

Object

NameType
$propsAllowedComponentProps & ComponentCustomProps & VNodeProps & RouterLinkProps
$slots{ default?: (__namedParameters: { href: string ; isActive: boolean ; isExactActive: boolean ; route: RouteLocationResolvedGeneric ; navigate: (e?: MouseEvent) => Promise<void | NavigationFailure> }) => VNode<RendererNode, RendererElement, { [key: string]: any; }>[] }
$slots.default?(__namedParameters: { href: string ; isActive: boolean ; isExactActive: boolean ; route: RouteLocationResolvedGeneric ; navigate: (e?: MouseEvent) => Promise<void | NavigationFailure> }) => VNode<RendererNode, RendererElement, { [key: string]: any; }>[]

Properties

useLink: <Name>(props: UseLinkOptions<Name>) => UseLinkReturn<Name>

Access to useLink() without depending on using vue-router

Type declaration

▸ <Name>(props): UseLinkReturn<Name>

Access to useLink() without depending on using vue-router

Type parameters
NameType
Nameextends string | symbol = string | symbol
Parameters
NameType
propsUseLinkOptions<Name>
Returns

UseLinkReturn<Name>

Released under the MIT License.