Skip to content

Is it possible to reverse the order of the columns in a Grid component? #1864

Answered by lachlanjc
piducancore asked this question in Q&A
Discussion options

You must be logged in to vote

There's nothing custom in Theme UI for this, but standard CSS will do it:

<Grid columns={[ 1, 2 ]}>

    <Box sx={{ gridColumn: [null, 2] }}>Column A</Box>

    <Box sx={{ gridColumn: [null, 1] }}>Column B</Box>

</Grid>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@piducancore
Comment options

Answer selected by piducancore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants