#How to set equal width of Stack elements ?

9 messages · Page 1 of 1 (latest)

tiny widget
#

I get different widths of AccordionItems when I stack them. Is there any way to set a fixed width for these ?

spiral agate
#

usually the default prop for align is stretch and makes the children equal length

tiny widget
#

align="center"

#

Yes, maybe I should use stretch. But that spans the whole screen 🤔 But maybe I should "pad" it or something

spiral agate
#

use align stretch (or can just delete the align prop as its default)

#

you can wrap the stack in a Center component

#

and make the Center a certain width/size

#

or wrap in another Stack