Skip to content

Empty

Used to indicate when a resource is empty or unavailable.

Welcome back

You are logged in as John Doe.

// Import component
import {
Empty,
Icon,
} from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/empty.css';
import '@fintech-sandpit/ui/style/components/icon.css';
// Import icon
import { faBoxOpen } from '@fortawesome/free-solid-svg-icons';
return (
<Empty
colorScheme="primary"
heading="No projects found"
description="Try another search or create a new project."
>
<Icon
as={faBoxOpen}
boxSize="3rem"
colorScheme="primary"
/>
</Empty>
);
NameTypeRequiredDefaultDescription
iconBoxSizeCssUnit3remThe size of the icon
colorSchemeColorSchemeneutralThe color scheme of the empty state
headingstringThe heading text
descriptionstringThe description text
Slot nameDescription
defaultA custom content, including the icon, and, optionally, heading and description