Skip to content

Commit

Permalink
feat(grid): add align items prop
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz authored and ej9x committed Aug 9, 2018
1 parent 51caea7 commit 60d1308
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/atoms/Grid/GridBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ type GridBoxProps = {|
justifySelf?: 'start' | 'end' | 'center' | 'stretch',
/** justify-content css rule*/
justifyContent?: 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly',
/** justify-content css rule*/
alignItems?: 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly',
/** align-content css rule*/
alignContent?: 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly',
|};
Expand Down Expand Up @@ -60,6 +62,10 @@ const StyledTag = createStyledTag(name, (props) => {
style.justifyContent = props.justifyContent;
}

if (props.alignItems) {
style.alignItems = props.alignItems;
}

if (props.alignContent) {
style.alignContent = props.alignContent;
}
Expand Down

0 comments on commit 60d1308

Please sign in to comment.