I want to have a logo as a link, how should I go about it?

As the title says, I am trying to embed a link within a logo. What would be the best way to do it? should I use NuxtLink and then some kind of Nuxt Image component?
3 Replies
Sagar Kapoor
Sagar KapoorOP6mo ago
<template>
<NuxtLink to="/">
<NuxtImg src="/path/to/your/logo.png" alt="Logo" />
</NuxtLink>
</template>
<template>
<NuxtLink to="/">
<NuxtImg src="/path/to/your/logo.png" alt="Logo" />
</NuxtLink>
</template>
Is this a good approach?
Cue
Cue6mo ago
Yes. That’s precisely what those components are designed to do.
Sagar Kapoor
Sagar KapoorOP6mo ago
So is it advisable to use the NuxtImg component each time there is a requirement for images?
Want results from more Discord servers?
Add your server