Skip to content
Advertisement

Material UI All components in the same line, taking full width

I have these components here:

Sandbox: https://codesandbox.io/s/6ipdf?file=/demo.js:78-129

JavaScript

I want the first input(the text input) to take all the remaining space on the page, how do I do that?

Advertisement

Answer

You can wrap the form control components using Box instead of the current div.

JavaScript

If you think the select components have the large width, then you can set the custom width.

Refer to flexbox

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement