[DataGrid] Add xxxClasses API #1950
Labels
component: data grid
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Summary 💡
The global class names added to the DOM by the core components are available through this API:
https://codesandbox.io/s/unstyledslider-material-demo-forked-mql3p?file=/demo.tsx:90-185
This issue is about proposing that we do the same.
Motivation 🔦
For consistency and simplicity, I would encourage us to do the same here. For instance, we would remove this constant
https://github.com/mui-org/material-ui-x/blob/2f61504f49e0b269279fa00b5e971b2a26267ddf/packages/grid/_modules_/grid/constants/cssClassesConstants.ts#L9
and use
dataGridClasses.row
.Context
#408
The text was updated successfully, but these errors were encountered: