Skip to content

browniefed/emotion-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple emotion based responsive system on top of styled-system.

Responsive props include

display,
flexWrap,
flexDirection,
alignItems,
justifyContent,
width,
minWidth,
maxWidth,
space,
fontSize,
color,
flex,
order,

Row

Flex component that's display: "flex" and 100% width by default.

Col

The Col is the Row component with 3 special props. It sets flexBasis and maxWidth to the width, and has a shrink option.

flexBasis={props.flexBasis || props.width}
maxWidth={props.maxWidth || props.width}
flex={props => (shrink ? "1 1 auto" : "1 0 auto")}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published