diff --git a/.changeset/brown-taxis-share.md b/.changeset/brown-taxis-share.md
new file mode 100644
index 0000000000..3bf4420b96
--- /dev/null
+++ b/.changeset/brown-taxis-share.md
@@ -0,0 +1,6 @@
+---
+"@heroui/table": patch
+"@heroui/theme": patch
+---
+
+fix(table): virtualized table in firefox by replacing Spacer with css (#2108, #5479)
diff --git a/packages/components/table/package.json b/packages/components/table/package.json
index 641461087d..1c3cb7d991 100644
--- a/packages/components/table/package.json
+++ b/packages/components/table/package.json
@@ -36,7 +36,7 @@
"peerDependencies": {
"react": ">=18 || >=19.0.0-rc.0",
"react-dom": ">=18 || >=19.0.0-rc.0",
- "@heroui/theme": ">=2.4.17",
+ "@heroui/theme": ">=2.4.23",
"@heroui/system": ">=2.4.18"
},
"dependencies": {
@@ -44,7 +44,6 @@
"@heroui/react-utils": "workspace:*",
"@heroui/shared-icons": "workspace:*",
"@heroui/shared-utils": "workspace:*",
- "@heroui/spacer": "workspace:*",
"@react-aria/focus": "3.21.2",
"@react-aria/interactions": "3.25.6",
"@react-aria/table": "3.17.8",
diff --git a/packages/components/table/src/table.tsx b/packages/components/table/src/table.tsx
index 783afdff32..d5e73db869 100644
--- a/packages/components/table/src/table.tsx
+++ b/packages/components/table/src/table.tsx
@@ -1,7 +1,6 @@
import type {UseTableProps} from "./use-table";
import {useCallback} from "react";
-import {Spacer} from "@heroui/spacer";
import {forwardRef} from "@heroui/system";
import {useTable} from "./use-table";
@@ -111,7 +110,6 @@ const Table = forwardRef<"table", TableProps>((props, ref) => {
)}
))}
-
((props, ref) => {
)}
))}
-
tr]:first:rounded-lg",
+ thead: "[&>tr]:first:rounded-lg after:content-[''] after:table-row after:h-[5px]",
tbody: "after:block",
tr: ["group/tr", "outline-solid outline-transparent", ...dataFocusVisibleClasses],
th: [
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9b8234d1ec..c47e1fafe3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2695,9 +2695,6 @@ importers:
'@heroui/shared-utils':
specifier: workspace:*
version: link:../../utilities/shared-utils
- '@heroui/spacer':
- specifier: workspace:*
- version: link:../spacer
'@react-aria/focus':
specifier: 3.21.2
version: 3.21.2(react-dom@18.3.0(react@18.3.0))(react@18.3.0)