```ts
import Link from "~/components/ui/Link.vue"
```
# Link
Users can navigate by following Links. They expect that in contrast to clicking a [button](button), following a link does not manipulate items or trigger any action.
This component will render as [an ``Β elementΒ [MDN]](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a).
```vue-html
Home
```
Home
Instead of a route, you can set the prop `to` to any web address starting with `http`.
## `Active` states
- If any ancestor path matches, the `.router-link-active` class is added
- If the whole path matches, the `.router-link-exact-active` class is added
See the [Vue docs](https://router.vuejs.org/guide/essentials/active-links) for a primer on Path matching.
In addition to the standard Vue `RouterLink` path matching function, we use this algorithm:
- If the destination of the link contains any query parameter _and_ none of these is set (i.e. they are all `undefined`), then the class `.router-link-no-matching-query-flags` is added.
This is particularly useful for modals.
Open modal
A paragraph of text with an inline (uncolored) link: no color
π
π
π
π
π
π
```
π
π
π
π
π
π