Class: Box

Box()

Represent a simple container which is not a Flex container. This container has built in shouldComponentUpdate to prevent unwanted updates when there is no changes on its property There is also basic property filtering for invalid propery when passing property from its parent like this:

Constructor

new Box()

Properties:
Name Type Description
align string Shorthand for css align-self, this allows the default alignment (or the one specified by align-items) to be overridden for individual flex items.
auto bool Shorthand for css flex: 1 1 auto
basis string | number Shorthand for css flex-basis, it defines the default size of an element before the remaining space is distributed
col number How many x of 1/12 of width of the parent container that this element should take. This equals to css width: (col * 100 / 12)%
grow number Shorthand for css flex-grow, it defines what amount of the available space inside the flex container the item should take up
order number Controls the order in which this Box appears in the Flex container
shrink number Shorthand for css flex-shrink, it defines the ability for a flex item to shrink if necessary.
style object Element style
Source: