Skip to main content

Empty Message

The EmptyMessage component is used to display a placeholder message when there is no data to show in a table or list.

import { EmptyMessage } from "tawuniya/components";

👉 View in Storybook


Props​

PropTypeDefaultDescription
iconReact.ReactNode<Icon name="empty-state" />Icon to display above the message.
titlestring-Main title text for the empty state.
descriptionstring-Secondary description or message text.

Usage​

Basic Example​

<EmptyMessage
title="No Records"
description="There are no entries to display."
/>

With Custom Icon​

<EmptyMessage
icon={<CustomIcon />}
title="No Data"
description="Try adjusting your filters."
/>

Notes​

  • If no icon is provided, a default empty-state icon is rendered.