# Link

# Usage

Basic links

# Features

  • Linking to external sources or router-links.
  • If link is empty, component prevents scrolling up the page after clicking.
  • Router link props if 'to' property is set.

When you have vue-router package installed you can use CLink as a router-link (docs). To turn link into router-link just pass address in 'to' prop instead of 'href'. Then component will become 'router-link' extended by base 'CLink' props. The only exception is that tag prop is replaced with routerTag.