diff --git a/apps/www/src/app/examples/page.tsx b/apps/www/src/app/examples/page.tsx
index c5d95758..76df5278 100644
--- a/apps/www/src/app/examples/page.tsx
+++ b/apps/www/src/app/examples/page.tsx
@@ -5,6 +5,7 @@ import {
AvatarGroup,
Button,
Callout,
+ DataTable,
DatePicker,
Dialog,
DropdownMenu,
@@ -1957,6 +1958,107 @@ const Page = () => {
+
+ DataTable Examples
+
+
+
+
+
+
+ }
+ heading='No users found'
+ subHeading="We couldn't find any matches for that keyword or filter. Try alternative terms or check for typos."
+ />
+ }
+ />
+
+
+
+
+
+
+ }
+ heading='No users found'
+ subHeading="We couldn't find any matches for that keyword or filter. Try alternative terms or check for typos."
+ />
+ }
+ />
+
+
+
+
diff --git a/packages/raystack/components/data-table/components/content.tsx b/packages/raystack/components/data-table/components/content.tsx
index 703b6895..605a7eb5 100644
--- a/packages/raystack/components/data-table/components/content.tsx
+++ b/packages/raystack/components/data-table/components/content.tsx
@@ -218,12 +218,16 @@ export function Content({
const visibleColumnsLength = table.getVisibleLeafColumns().length;
+ const hasData = rows?.length > 0 || isLoading;
+
return (
-
+ {hasData && (
+
+ )}
- {rows?.length || isLoading ? (
+ {hasData ? (
<>
) : (
-
+
{emptyState || }
diff --git a/packages/raystack/components/data-table/data-table.module.css b/packages/raystack/components/data-table/data-table.module.css
index ab013ab3..48599d62 100644
--- a/packages/raystack/components/data-table/data-table.module.css
+++ b/packages/raystack/components/data-table/data-table.module.css
@@ -60,3 +60,7 @@
.cell {
background: inherit;
}
+
+.emptyStateCell {
+ border-bottom: none;
+}