webpackJsonp([0x663de410feda],{520:function(e,n){e.exports={pathContext:{frontmatter:{path:"docs/flex",hasPlayground:!0,initialPlayground:null,redirect:null},html:'

Flex Basis, Grow, and Shrink

\n

FLEX GROW describes how any space within a container should be distributed\namong its children along the main axis. After laying out its children, a container will\ndistribute any remaining space according to the flex grow values specified by its children.

\n

Flex grow accepts any floating point value >= 0, with 0 being the default value.\nA container will distribute any remaining space among its children weighted by the child’s flex grow value.

\n

\n

FLEX SHRINK describes how to shrink children along the main axis in the\ncase that the total size of the children overflow the size of the container on the main axis.\nflex shrink is very similar to flex grow and can be thought of in the same way if\nany overflowing size is considered to be negative remaining space.\nThese two properties also work well together by allowing children to grow and shrink as needed.

\n

Flex shrink accepts any floating point value >= 0, with 1 being the default value.\nA container will shrink its children weighted by the child’s flex shrink value.

\n

\n

FLEX BASIS is an axis-independent way of providing the default size of an item\nalong the main axis. Setting the flex basis of a child is similar to setting the width of that\nchild if its parent is a container with flex direction: row or setting the height of a child\nif its parent is a container with flex direction: column. The flex basis of an item is the\ndefault size of that item, the size of the item before any flex grow and flex shrink\ncalculations are performed.

\n

'}}}}); //# sourceMappingURL=path---docs-flex-fdaf506bb55b1c81c5a1.js.map