Home

Awesome

Styled Flex Component

Codecov Build Status

Flex Element for not writing any more custom flex styles because fuck that

Install

yarn add styled-flex-component
or
npm i styled-flex-component

Usage

import React from 'react';
import Flex, { FlexItem } from 'styled-flex-component';

export default () => (
  <Flex center full>
    <FlexItem order="2">World</FlexItem>
    <FlexItem order="1">Hello</FlexItem>
  </Flex>
);

Props

All props without description are just true or false values and take no arguments

Flex Container

General

Direction

Wrap

Align Items

Align Content

Justify Content

Flex Item

License

MIT