Flex Basis
Define the default size of an element before the remaining space is distributed.
The flexBasis property specifies the initial main size of a flex item before growth or shrinkage. It follows boxSizing: the default BoxSizing.BorderBox includes padding and border, while BoxSizing.ContentBox adds those edges to the basis.
Example
Loading Preview…
Quick Notes
flexBasisdefaults to"auto", which uses the item's main-axis size or its content measurement.- It is similar to
width(orheightdepending onflexDirection) but specific to flex items.