From a735483381e3509609cc7449a3cec077febbaa60 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 19 Oct 2023 15:46:32 +0200 Subject: [PATCH] docs(Link): add usage example Resolves #749 --- docs/content/2.elements/9.link.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/content/2.elements/9.link.md b/docs/content/2.elements/9.link.md index bc24836d..b7aff16b 100644 --- a/docs/content/2.elements/9.link.md +++ b/docs/content/2.elements/9.link.md @@ -17,6 +17,18 @@ 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 +--- +props: + to: /elements/link + activeClass: 'text-primary' + inactiveClass: 'text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200' +code: Link +--- + +Link +:: + It also renders an `` tag when a `to` prop is provided, otherwise it defaults to rendering a `