Log in
Log into community
Get help from the marimo community
New post
View all posts
Related posts
Was this helpful?
๐
๐
๐
Powered by
Hall
Active
Updated 4 days ago
0
Follow
justify elements with vstack
Question
justify elements with vstack
Active
0
Follow
j
john_helt
4 days ago
ยท
Is there a way to let two elements align in a way that jusfies both left and right hand side of the composite component? Currently, I get something like this. But I would like to extend the elements sides so they match:
Attachment
H
M
j
3 comments
Share
Open in Discord
H
Haleshot
4 days ago
You mean like this:
Attachment
M
Myles Scolnick
4 days ago
@john_helt , if you are looking for more of a grid-layout, you may need to roll this yourself instead of using the labels on the form:
Plain Text
Copy
mo.hstack( [ mo.vstack([label1, label2]), mo.vstack([input1, input2]) ], justify="start" )
j
john_helt
4 days ago
I feel like that doesn't really give the grid layout, because the text field is always the same width, but the labels may vary
Add a reply
Sign up and join the conversation on Discord
Join on Discord