Skip to content

Customize Material-UI input components with props #1710

Open
@tasoskakour

Description

@tasoskakour

Is your feature request related to a problem? Please describe.
I'd like to show a text input with variant: 'outlined'. Would this be possible to change with options/props passed to the Control of uischema?

Describe the solution you'd like
Would something like this be possible?

  type: "VerticalLayout",
  elements: [
    {
      type: "Control",
      scope: "#/properties/trackingId",
      options: {
        variant: "outlined"
      }
    },
    {
      type: "Control",
      scope: "#/properties/extraGaVarsTrack"
    }
  ]
}

Describe alternatives you've considered
I'm guessing an alternative would be to create custom MUI renderers from scratch as you demonstrate to the DOCS. But wouldn't that be a little overkill, if we just want to change a simple prop to a MUI input?

Describe for which setup you like to have the improvement
Framework: [react]
RendererSet: [material]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions