# CardSpec

What a feature's card shows. Templates read decoded fields.

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

## Signature

```ts
import type { CardSpec } from "@mapcairn/core";
 
interface CardSpec
```

## Properties

### lines

```ts
readonly lines: readonly LayerTemplate[];
```

One line each, such as `{depthKm|km} deep`. Lines whose fields are all missing are left out.

### link

```ts
readonly link?: {
        readonly field: string;
        readonly label: DefinitionText;
    };
```

A link to the provider's page for the feature.

### title

```ts
readonly title: LayerTemplate;
```

The card's heading, a template over the feature's decoded fields.

## See also

- [`LayerTemplate`](https://docs.mapcairn.com/api/core/LayerTemplate.md)
- [`DefinitionText`](https://docs.mapcairn.com/api/core/DefinitionText.md)

Source: [packages/core/src/layers/definition.ts:566](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L566)
