# MountLink

A link a page gives the map: where it goes and what it is called. A link
whose address the part that draws it does not accept is a `MountMapError`
that names the property, and is left out again where it is drawn: the link
out of the About block (`about.link`) takes an absolute `http` or `https`
address only, and `about.homeLink` and `creditsLink` also take a path on the
page's own site (`/about`). Neither takes `javascript:`, `data:`, another
scheme or `//other.example`. A link needs an address and a name, so an empty
one is an error. In releases after `0.2.0`, not in `0.2.0` or any earlier
release.

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { MountLink } from "@mapcairn/map";
 
interface MountLink
```

## Properties

### href

```ts
readonly href: string;
```

An `http` or `https` address, or, where the link allows it, a path on the page's site.

### label

```ts
readonly label: string;
```

A name that says where the link goes, not "click here". A message key, or text as written. It is read in the map's language and is not marked with a `lang` of its own.

Source: [packages/map/src/element/types.ts:45](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/element/types.ts#L45)
