# DrawToolbarProps

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

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

## Signature

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

## Properties

### draw

```ts
readonly draw: UseDraw;
```

The drawing state from `useDraw`.

### onDone

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

Called by "Done".

### onOpenShapes

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

Called by "Shapes and export", which opens the list of shapes in the sheet.

## See also

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

Source: [packages/map/src/tools/DrawToolbar/DrawToolbar.tsx:40](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/DrawToolbar/DrawToolbar.tsx#L40)
