# PinCardProps

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

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

## Signature

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

## Properties

### headingLevel

```ts
readonly headingLevel?: 2 | 3 | 4;
```

The level of the "Dropped pin" heading, so it fits the host's outline. Defaults to 2.

### headingRef

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

Receives the heading element, which takes focus by script (`tabIndex`
-1), so the sheet that opens the card can move focus to it.

### lookupNote

```ts
readonly lookupNote?: ReactNode;
```

What the address lookup sends and to whom, shown under the "Look up
address" button, which it describes. Defaults to the catalogue's
`tools.pin.lookupNote`, which does not name the service because the SDK
does not know which one a host uses. A host names its search provider
here. Phrasing content only: it sits inside a paragraph.

### onClear

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

Called when the user chooses "Clear pin".

### onClose

```ts
readonly onClose?: () => void;
```

When given, a close button is shown that calls it.

### position

```ts
readonly position: LatLng;
```

Where the pin is.

## See also

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

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