# DirectionsPanelProps

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

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

## Signature

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

## Properties

### directions

```ts
readonly directions: UseDirections;
```

The directions state and actions, from `useDirections`.

### getBias

```ts
readonly getBias?: () => Bounds | undefined;
```

Returns the box to favour in the place search, usually the visible map.
Optional, and passed to [`useSearch`](https://docs.mapcairn.com/api/map/useSearch-function.md), whose note on what a bias
sends applies.

### headingLevel

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

The level of the group headings, one below the sheet's title. Defaults to 3.

### note

```ts
readonly note?: ReactNode;
```

What a request sends and to whom, shown under the buttons. Defaults to
the catalogue's `tools.directions.note`, which does not name the service.
A host names its routing service here.

### pin

```ts
readonly pin: LatLng | null;
```

The dropped pin, offered as a stop, or null when there is none.

## See also

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

Source: [packages/map/src/tools/Directions/DirectionsPanel.tsx:66](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/Directions/DirectionsPanel.tsx#L66)
