Skip to content

flex-grow

Utilities for controlling how flex items grow.

Class Effect
grow flex-grow: 1;
grow-<number> flex-grow: <number>;
grow-[<value>] flex-grow: <value>;

Use grow to let an item fill any available space.

flex-grow: Allowing items to growflex-grow: Allowing items to grow
if ui.div("flex gap-4") {
tile("01", "size-14 flex-none")
tile("02", "h-14 grow")
tile("03", "size-14 flex-none")
}
flex-grow: Growing items based on factorflex-grow: Growing items based on factor
if ui.div("flex gap-4") {
tile("01", "h-14 w-12 grow")
tile("02", "h-14 w-12 grow-3")
tile("03", "h-14 w-12 grow-7")
}