Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant design react multiple form layout

I want my form to have a vertical layout and a portion of my form I want to have an inline form. How to achieve this? I see no docs.

like image 370
Welp Avatar asked Jun 07 '26 21:06

Welp


1 Answers

You can work around this using flex and some CSS tweaks.

Add a wrapper around your inline part with display: flex and also force display: flex to the children of your wrapper.

https://codesandbox.io/s/silly-swartz-4vfp2

Another solution is to just combine inline parts together. Choose an inline layout for your form and just add <br/> where you want line breaks.

like image 65
D0m3 Avatar answered Jun 10 '26 11:06

D0m3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!