Empty State

Empty state with icon and text props.

<>
	<EmptyState icon="info-circle" text="Text" />
</>

Light

Make your text invisible by using light prop.

<>
	<EmptyState icon="info-circle" light text="Text" />
</>

Icon size

You can change the size of icon with size prop.

<>
	<EmptyState icon="info-circle" size="30" text="Text" />
</>

Image

Replace the icon with image by image prop.

<>
	<EmptyState image="https://erxes.io/static/images/logo/logo_dark.svg" text="Text" />
</>

Extra

You can add extra item (text, number, tags, etc) to your empty state with extra prop.

<>
	<EmptyState icon="info-circle" size="30" text="Text" extra={<Button>Extra button</Button>} />
</>

API

import EmptyState from "erxes-ui/lib/components/EmptyState";
  • required prop
NAMETYPEDESCRIPTION
text*stringShows your text. If you want to show only text, use it with light prop
iconstringShows icon
imagestringShows image
sizestringChanges the size of icon
extraReact.ReactNodeAdd other components or text
lightbooleanShows only first row

Was this page helpful?