Empty

An empty state with icon, message and call to action.

Empty rendered by Tarve Empty rendered by Tarve
Native render. The live version loads when this comes into view.

Import

import { Empty } from "@tarve/core";

Usage

Empty.tsx
import { Button, Empty, Icon } from "@tarve/core";

<Empty
  style={{ width: 420 }}
  icon={<Icon name="folder" size={28} />}
  title="No projects yet"
  description="Create your first project to get started."
  action={<Button>New project</Button>}
/>

Props

PropTypeDefault
title required string—
action Child—
description string—
icon Child—

Common props

Shared by every component. See descriptions →

childrenclassclassNamehighlightidkeymotionFromonHighlightonPasteonPointerLeaveonPointerMoveonSizeonTransitionEndrovingGroupstyle