Skip to main content

EmptyState

What a list or panel shows when it has nothing to show: an icon, a real heading, an explanation and an optional action. The heading is never empty, because a blank heading is announced as a heading with no name.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { EmptyState } from "@mapcairn/map";

function EmptyState(input: EmptyStateProps): JSX.Element;

Parameters​

  • { icon, heading: headingText, headingLevel, children, action: actionNode, className, ...rest }
  • input (EmptyStateProps)

Returns​

JSX.Element

See also​

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