Changing Material UI variant for date input

Hi,

Noticed that MaterialDateControl has a fixed setting for its TextField’s variant (https://github.com/eclipsesource/jsonforms/blob/master/packages/material/src/controls/MaterialDateControl.tsx). What would be the way to override that with minimal boilerplate? (in case I want to use variant="outlined")

btw. if it wasn’t set explicitly in the code of jsonforms, users could use Material UI global styling features (defaultProps) for MuiTextField

Hi @Janekk,
The problem here is that outlined is the default in Material UI but we need standard for a consistent L&F to the other provided off-the-shelf renderers.

The quick workaround for you would be to just copy and adjust the code and register it as a custom renderer.

The overall topic of variant customization is under discussion in issue #1797. Feel free to add to this discussion and/or contribute a solution :wink: