Properties
Property (Click to sort Ascending) | Type | Default | Description |
---|---|---|---|
href | String | null | Denotes the target URL of the link for standard a links |
rel | String | null | Sets the 'rel' attribute on the rendered link |
target | String | '_self' | Sets the 'target' attribute on the rendered link |
active | Boolean | false | When set to 'true', places the component in the active state with active styling |
disabled | Boolean | false | When set to 'true', disables the component's functionality and places it in a disabled state |
to | String or Object | null | router-link prop: Denotes the target route of the link. When clicked, the value of the to prop will be passed to router.push() internally, so the value can be either a string or a Location descriptor object |
append | Boolean | false | router-link prop: Setting append prop always appends the relative path to the current path |
replace | Boolean | false | router-link prop: Setting the replace prop will call 'router.replace()' instead of 'router.push()' when clicked, so the navigation will not leave a history record |
event | String or Array | 'click' | router-link prop: Specify the event that triggers the link. In most cases you should leave this as the default |
active-class | String | router-link prop: Configure the active CSS class applied when the link is active. Typically you will want to set this to class name 'active' | |
exact | Boolean | false | router-link prop: The default active class matching behavior is inclusive match. Setting this prop forces the mode to exactly match the route |
exact-active-class | String | router-link prop: Configure the active CSS class applied when the link is active with exact match. Typically you will want to set this to class name 'active' | |
router-tag | String | 'a' | router-link prop: Specify which tag to render, and it will still listen to click events for navigation. 'router-tag' translates to the tag prop on the final rendered router-link. Typically you should use the default value |
no-prefetch | Boolean | false | nuxt-link prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'no-prefetch' will disabled this feature for the specific link |
<b-link>
supports generating
<router-link>
or
<nuxt-link>
component (if using Nuxt.js).
For more details on the router link (or nuxt link) specific props, see the
Router support
reference section.