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>; |
Examples
Section titled “Examples”Allowing items to grow
Section titled “Allowing items to grow”Use grow to let an item fill any available space.


if ui.div("flex gap-4") { tile("01", "size-14 flex-none") tile("02", "h-14 grow") tile("03", "size-14 flex-none")}Growing items based on factor
Section titled “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")}