Skip to content

Commit

Permalink
feat(GridBox): add some grid properties
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Oct 1, 2018
1 parent f02f970 commit 0906a2c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/atoms/Grid/GridBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@ const StyledTag = createStyledTag(name, (props) => {
position: 'relative',
};

if (props.columnStart) {
style.gridColumnStart = props.columnStart;
}

if (props.columnEnd) {
style.gridColumnEnd = props.columnEnd;
}

if (props.rowStart) {
style.gridRowStart = props.rowStart;
}

if (props.rowEnd) {
style.gridRowEnd = props.rowEnd;
}

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

0 comments on commit 0906a2c

Please sign in to comment.