rjsf-material-ui icon indicating copy to clipboard operation
rjsf-material-ui copied to clipboard

How customize inputs?

Open gengue opened this issue 4 years ago • 1 comments

Hi. I am wondering if I can choose a "variant" for a TextField? or perhaps something via ui-schema like:

{
  "first_name": {
    "material-ui:variant": "outlined"
 }

Amazing job BTW.

gengue avatar Dec 03 '19 23:12 gengue

What you can do is set the default props via the theme.

const theme = createMuiTheme({
  props: {
      MuiTextField: {
        variant: "outlined"
      }
  }
})

https://material-ui.com/customization/globals/#default-props Haven't found a solution for single input fields (beside creating a manual widget component)

clovrd avatar Feb 14 '20 22:02 clovrd