# SelectionProviderProps

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

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

## Signature

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

## Properties

### children

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

The components that read the selection.

### selection

```ts
readonly selection: FeatureSelectionState | null;
```

What [`useFeatureSelection`](https://docs.mapcairn.com/api/map/useFeatureSelection.md) returned: null when the host has no store.

## See also

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

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