From c1ddedf67a908bc3c5e54d6fec13610b5bb8705d Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 10 Jul 2024 19:07:06 +0200 Subject: [PATCH] docs(link): update --- docs/content/3.components/link.md | 76 +++++++++++++++++++++++++------ docs/nuxt.config.ts | 3 +- src/runtime/components/Link.vue | 6 +++ 3 files changed, 71 insertions(+), 14 deletions(-) diff --git a/docs/content/3.components/link.md b/docs/content/3.components/link.md index 3b02dada..8121dce4 100644 --- a/docs/content/3.components/link.md +++ b/docs/content/3.components/link.md @@ -17,32 +17,73 @@ The Link component is a wrapper around [``](https://nuxt.com/docs/api/ The incentive behind this is to provide the same API as NuxtLink back in Nuxt 2 / Vue 2. You can read more about it in the Vue Router [migration from Vue 2](https://router.vuejs.org/guide/migration/#removal-of-the-exact-prop-in-router-link) guide. -::component-card +::note +It is used by the [Breadcrumb](/components/breadcrumb), [Button](/components/button), [ContextMenu](/components/context-menu), [DropdownMenu](/components/dropdown-menu) and [NavigationMenu](/components/navigation-menu) components. +:: + +### Tag + +The `Link` components renders an `` tag when a `to` prop is provided, otherwise it renders a `