Browse documentation

Reference / Flexbox & grid

Flex grow

Give an item a share of unused space in a flex row or column.

Working example

With both bases set to zero, the second item receives twice the share of available space.

HTML
<div class="flex gap-2">
  <span class="basis-0 grow border p-2">Notes</span>
  <span class="basis-0 grow-2 border p-2">Manuscript</span>
</div>

Class reference

ClassCSS declarations
growflex-grow: 1;
grow-0flex-grow: 0;
grow-2flex-grow: 2;
grow-[3]flex-grow: 3;
View full generated CSS
Compiled CSS
.grow {
  flex-grow: 1;
}
.grow-0 {
  flex-grow: 0;
}
.grow-2 {
  flex-grow: 2;
}
.grow-\[3\] {
  flex-grow: 3;
}