[data grid] Export GridEditInputCellRoot
related stuff
#16285
Labels
component: data grid
This is the name of the generic UI component, not the React module!
customization: css
Design CSS customizability
customization: theme
Centered around the theming features
feature: Editing
Related to the data grid Editing feature
new feature
New feature or request
status: waiting for author
Issue with insufficient information
Summary
Hi,
I'm using
renderCellEdit
with an enhancedInputBase
. Unfortunately by default it will havefontSize: '1rem', padding: 0
whereas your defaultGridEditInputCellRoot
hasfontSize: '0.875rem', padding: '0 16px'
.I know it's always possible to override CSS but it's a bit hacky. I would have expected the properties base you use to be exported so people do not have to hardcode them to mimic the global style on editable cells we don't want to custom
https://github.com/mui/mui-x/blob/4497258e9f9867b4ee29346bca16e83a6322b9c5/packages/x-data-grid/src/components/cell/GridEditInputCell.tsx#L28C7-L39
(same for
useUtilityClasses
)Note: I guess this pattern could be applied not only for basic input cells.
Examples
No response
Motivation
No response
Search keywords: renderEditCell style fontSize
The text was updated successfully, but these errors were encountered: