Empty

Explains why a collection has no content and offers a useful next step. Use it for first-use, filtered, or cleared states.

React

Ready

Figma

React examples

Default

No active tracks
Tracks appear here as soon as a sensor detects one.
import { IconRadar } from "@kela-systems/icons/outline";
import {
  Button,
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@kela-systems/ui-components";

export default function EmptyDefault() {
  return (
    <Empty>
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <IconRadar />
        </EmptyMedia>
        <EmptyTitle>No active tracks</EmptyTitle>
        <EmptyDescription>Tracks appear here as soon as a sensor detects one.</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button variant="outline">View history</Button>
      </EmptyContent>
    </Empty>
  );
}

Props

Empty

No props of its own. It also takes the attributes of the HTML element it renders.

EmptyHeader

No props of its own. It also takes the attributes of the HTML element it renders.

EmptyTitle

No props of its own. It also takes the attributes of the HTML element it renders.

EmptyDescription

No props of its own. It also takes the attributes of the HTML element it renders.

EmptyContent

No props of its own. It also takes the attributes of the HTML element it renders.

EmptyMedia

NameDefaultDescription
variant
"default" | "icon"
"default"

It also takes the attributes of the HTML element it renders.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.