feat: add separator support to data table (#24752)

* feat: add separator support to data table

* chore: remove unnecessary comments

* chore: move files to more appropriate places

* fix: border bottom
This commit is contained in:
Rodrigo Ehlers authored and GitHub committed 2025-10-30 14:41:21 +01:00
1 parent 7bfdaa3d64
commit 1c2da58d2a
5 files changed
+416 -183

No files matched your search

@@ -0,0 +1,11 @@
export type SeparatorRow = {
type: "separator";
label: string;
className?: string;
};
export type DataTableRow<TData> = TData | SeparatorRow;
export function isSeparatorRow<TData>(row: DataTableRow<TData>): row is SeparatorRow {
return typeof row === "object" && row !== null && "type" in row && row.type === "separator";
}