Skip to content

EmptyState

EmptyState displays an icon, title, supporting text, optional additional details, and actions for empty or not-found views.

Code
import {
Button,
EmptyState,
Icon,
Typography,
} from "@falcon/ui-kit/dist/legacy";
export function Example() {
return (
<EmptyState
buttons={<Button>Create order</Button>}
extraInfo={
<div className="tw:flex tw:flex-col tw:items-center">
<div className="tw:flex tw:flex-col tw:gap-3">
<div className="tw:flex tw:items-center tw:gap-2">
<Icon color="special" name="feature" size="24" />
<Typography fontSize={18} lineHeight="medium">
Import products from a catalog
</Typography>
</div>
<div className="tw:flex tw:items-center tw:gap-2">
<Icon color="special" name="feature" size="24" />
<Typography fontSize={18} lineHeight="medium">
Add line items manually
</Typography>
</div>
</div>
</div>
}
iconName="check-completed"
subtext="Create an order or import products to start fulfillment."
title="No orders yet"
/>
);
}
Code
import { EmptyState, Icon } from "@falcon/ui-kit/dist/legacy";
export function Example() {
return (
<EmptyState
extraInfo={
<div className="tw:flex tw:flex-col tw:items-center">
<div className="tw:flex tw:flex-col tw:gap-3">
<a className="link-color" href="tel:(123) 456-7890">
<div className="tw:flex tw:items-center tw:gap-2">
<Icon name="phone-3" size="24" />
<span>(123) 456-7890</span>
</div>
</a>
<a className="link-color" href="mailto:support@example.com">
<div className="tw:flex tw:items-center tw:gap-2">
<Icon name="email" size="24" />
<span>support@example.com</span>
</div>
</a>
</div>
</div>
}
iconName="pack-1-invoice"
subtext="We're sorry, this contract could not be found. It might have been voided or deleted. If you believe this is an error, please let us know."
title="Contract not found."
/>
);
}
border?: boolean = true
buttons?: React.ReactNode
className?: string
extraInfo?: React.ReactNode
iconName?: string
smallTitle?: boolean
subtext?: React.ReactNode
sx?: StyleProps
title?: React.ReactNode