Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mleralec committed Jul 7, 2022
1 parent 7654b08 commit f4065db
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Expand Up @@ -112,15 +112,11 @@ const theme = {
},
}

// now you can use props with object style
// flexDirection will be "column" by default and "row" on screens > 600px
return (
<Box $display="flex" $flexDirection={{ _: 'row', sm: 'column' }}>
<Box $w="200px" $h="200px">
A
</Box>
<Box $w="200px" $h="200px">
B
</Box>
<Box $display="flex" $flexDirection={{ _: 'column', sm: 'row' }}>
<Box>A</Box>
<Box>B</Box>
</Box>
)
```
Expand All @@ -141,7 +137,7 @@ const theme = {
},
}

// now you can use props with object style
// color will be "white" by default and "tomato" on hover
return <Box $color={{ _: 'primary', hover: 'secondary' }}>Hello World!</Box>
```

Expand Down

0 comments on commit f4065db

Please sign in to comment.