coreui/coreui-vue

Cannot use "to" attribute in CLink Component

kanemotos opened this issue · 2 comments

CLink's "to" attribute seems not to be implemented.

The "to" attribute is not available for all components that inherit from CLink.

Vue version: 3.2.23
@coreui/vue version: 4.1.0

Thanks.

In v4 we don't use vue-router. But you can add it manually and use to attribute

<router-link
  to="/about"
  custom
  v-slot="{ href, route, navigate, isActive, isExactActive }"
>
  <CLink :active="isActive" :href="href" @click="navigate"
    >{{ route.fullPath }}</NavLink
  >
</router-link>

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions