Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 Grommet React 库创建一个水平或内联表单。我很喜欢它,但要么我错过了一些东西,要么一些简单的东西,比如内联表单,是不可能的。谁能阐明如何使用 Grommet 实现以下 AirBNB 表单样式?
注意:我确实尝试过使用列,但是一旦添加了 Form 元素,它就会变得块状并变成垂直的。
我在表单内设置了一个框,direction='row'然后在其中设置了 FormFields。
direction='row'
这是一个codepen(: