Skip to content

Commit

Permalink
feat: add exports of DataGrid classNames
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Feb 20, 2024
1 parent 98c7097 commit 88f9be4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/DataGrid/classNames.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { gridClasses } from "@mui/x-data-grid";

/**
* Class names for `DataGrid` components (src/components/DataGrid/).
*
* This object includes {@link gridClasses} exported from MUI's `DataGrid` package.
*/
export const dataGridClassNames = {
...gridClasses,
rowIndexEven: "data-grid-row-index-even",
rowIndexOdd: "data-grid-row-index-odd",
rowIndexEven: "data-grid-row__index-even",
rowIndexOdd: "data-grid-row__index-odd",
};
1 change: 1 addition & 0 deletions src/components/DataGrid/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./DataGrid";
export * from "./classNames";
export * from "./helpers";

0 comments on commit 88f9be4

Please sign in to comment.