# EmptyStateProps

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

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

## Signature

```ts
import type { EmptyStateProps } from "@mapcairn/map";
 
interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">
```

## Properties

### action

```ts
readonly action?: ReactNode;
```

An optional next step, usually a `Button`.

### children

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

The explanation, rendered as one paragraph.

### heading

```ts
readonly heading: string;
```

The heading text. A blank heading renders no heading element at all.

### headingLevel

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

The heading level, 2 to 6. Pick the level that fits the page outline.

### icon

```ts
readonly icon?: IconComponent;
```

A decorative icon above the heading, imported by name from `@phosphor-icons/react`.

## See also

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

Source: [packages/map/src/ui/EmptyState/EmptyState.tsx:8](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/EmptyState/EmptyState.tsx#L8)
