Skip to content

Documentación de la API / RouterLinkProps

Interface: RouterLinkProps

Hierarchy

  • RouterLinkOptions

    RouterLinkProps

Properties

activeClass

Optional activeClass: string

Class to apply when the link is active


ariaCurrentValue

Optional ariaCurrentValue: "time" | "location" | "page" | "step" | "date" | "true" | "false"

Value passed to the attribute aria-current when the link is exact active.

Default Value

'page'


custom

Optional custom: boolean

Whether RouterLink should not wrap its content in an a tag. Useful when using v-slot to create a custom RouterLink


exactActiveClass

Optional exactActiveClass: string

Class to apply when the link is exact active


replace

Optional replace: boolean

Calls router.replace instead of router.push.

Inherited from

RouterLinkOptions.replace


to

to: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric

Route Location the link should navigate to when clicked on.

Inherited from

RouterLinkOptions.to

Publicado bajo licencia MIT.

Build faster with AI
New Masterclass to help you leverage AI in your Vue workflow.
Get Early Access