# PinSectionProps

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

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

## Signature

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

## Properties

### children

```ts
readonly children?: ReactNode;
```

The pin's details, such as the pin card, shown under the note.

### hasPin

```ts
readonly hasPin: boolean;
```

Whether a pin is on the map.

### headingLevel

```ts
readonly headingLevel?: HeadingLevel;
```

The heading level. Defaults to 3, below the sheet's h2 title.

### headingRef

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

Receives the heading, so the sheet can focus it.

### onDropPin

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

Drops a pin at the centre of the map.

## See also

- [`HeadingLevel`](https://docs.mapcairn.com/api/map/HeadingLevel.md)

Source: [packages/map/src/panels/PinSection/PinSection.tsx:11](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/panels/PinSection/PinSection.tsx#L11)
