0.0.1 • Published 8 years ago

flexview v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

FlexView (component)

Props

NameTypeDefaultDescription
childrennodeoptional. FlexView content
columnbooloptional. Flex-direction: column
autobooloptional. Set flex: 0 0 100% NOTE: each property may be overwritten by their own props (grow, shrink, basis)
vAlignContentenum('top'|'center'|'bottom')optional. Align content vertically
hAlignContentenum('left'|'center'|'right')optional. Align content horizontally
marginLeftunion(string|number)optional. Margin-left property ("auto" to align self right)
marginTopunion(string|number)optional. Margin-top property ("auto" to align self bottom)
marginRightunion(string|number)optional. Margin-right property ("auto" to align self left)
marginBottomunion(string|number)optional. Margin-bottom property ("auto" to align self top)
growunion(bool|number)optional. Flex-grow property (for parent primary axis)
shrinkunion(bool|number)optional. Flex-shrink property
basisunion(string|number)optional. Flex-basis property
wrapbooloptional. Wrap content
heightunion(string|number)optional. Height property (for parent secondary axis)
widthunion(string|number)optional. Width property (for parent secondary axis)
flexBasisunion(string|number)optional. DEPRECATED: use "basis" instead
classNamestring''optional. Additional className for wrapper element
styleobject{}optional. Inline-style overrides for wrapper element