Skip to content

How to render Blink with NuxtLink and BImg with NuxtImage? #2770

Open
@darthf1

Description

@darthf1

What you are trying to do.

I run bootstrap-vue-next in my nuxt project, and i want router links rendered with NuxtLink, and i want images to render with NuxtImg.

Documentation states:

Nuxt.js specific router link props [​](https://bootstrap-vue-next.github.io/bootstrap-vue-next/docs/reference/router-links.html#nuxt-js-specific-router-link-props)
[Not yet implemented](https://github.com/bootstrap-vue-next/bootstrap-vue-next/blob/main/CONTRIBUTING.md#developing)

When BootstrapVue detects that your app is running under [Nuxt.js](https://nuxt.com/), it will render a [NuxtLink](https://nuxt.com/docs/api/components/nuxt-link#nuxtlink) sub component instead of a RouterLink. NuxtLink supports all of the above router link props, plus the following additional Nuxt.js specific props.

But it is unclear for me whether the nuxt specific router props are not yet implemented, or the whole render a NuxtLink subcomponent part is not yet imlemented.

What you have already tried.

I tried defining global options like this:

export default defineNuxtConfig({
  bootstrapVueNext: {
    plugin: {
      components: {
        global: {
          routerComponentName: 'NuxtLink',
        },
      },
    },
  },
}

But then i see two things:

As for B-Img, i could overwrite the tag property, and set it to NuxtImg, but im not sure thats the way to go since its not just a native html element?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions