# FeatureCardProps

Props for [`FeatureCard`](https://docs.mapcairn.com/api/map/FeatureCard.md).

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

## Signature

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

## Properties

### formatters

```ts
readonly formatters: FormatterRegistry;
```

The formatters the layer's card template may name.

### headingLevel

```ts
readonly headingLevel: 3 | 4 | 5 | 6;
```

The level of the card's heading, below the heading of the section that holds it.

### headingRef

```ts
readonly headingRef?: Ref<HTMLHeadingElement>;
```

Receives the card's heading element.

### layers

```ts
readonly layers: DataLayers;
```

The layers state the card reads and acts on, such as showing the affected area.

### onShowOnMap

```ts
readonly onShowOnMap: () => void;
```

Centres the map on the feature.

### selected

```ts
readonly selected: SelectedFeature;
```

The feature to show, with its layer.

## See also

- [`FormatterRegistry`](https://docs.mapcairn.com/api/core/FormatterRegistry.md)
- [`DataLayers`](https://docs.mapcairn.com/api/map/DataLayers.md)
- [`SelectedFeature`](https://docs.mapcairn.com/api/map/SelectedFeature.md)

Source: [packages/map/src/layers/FeatureCard.tsx:37](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/FeatureCard.tsx#L37)
