Skip to main content

EmptyStateProps

Props for EmptyState.

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

Signature​

import type { EmptyStateProps } from "@mapcairn/map";

interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">

Properties​

action​

readonly action?: ReactNode;

An optional next step, usually a Button.

children​

readonly children?: ReactNode;

The explanation, rendered as one paragraph.

heading​

readonly heading: string;

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

headingLevel​

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

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

icon​

readonly icon?: IconComponent;

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

See also​

Source: packages/map/src/ui/EmptyState/EmptyState.tsx:8