flexery
Version:
Flex modifier utilities for working with React
40 lines (26 loc) • 761 B
Markdown
for working with React
Star the repo, support the dev, etc etc
```sh
npm i flexery
yarn add flexery
```
```sh
// Flex Helpers
<Box flex />
<Box flex-1 />
<Box flex-2 />
// ... and so on
// Flex Alignment Helpers
<Box alignTop alignBottom alignCenter alignStart alignEnd alignBaseline />
<Box justTop justBottom justCenter justStart justEnd justBaseline justBetween jsutAround justEvenly justStretch/>
// Note: centerX and centerY are fixed to `X` being justifyContent and `Y` being alignItems
<Box center centerX centerY />
```
The library has a similar api to [Spacery](https://github.com/barelyhuman/spacery#api) , just replace the name with Flexery
[ ](LICENSE)
> Flex modifier utilities