0.0.7 • Published 4 years ago

styled-flex-lite v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Styled Flex Component

Minimalistic React Flex component with Typescript support.

  • No styled-system props
  • No support for array props
  • Compatible with majority of rebass props

Install

yarn add styled-flex-lite
or
npm i -S styled-flex-lite

Usage

import React from 'react';
import Flex from 'styled-flex-lite';

export default () => (
  <Flex flexDirection="column" alignItems="center" as="main">
    <div>Hello</div>
    <div>World</div>
  </Flex>
);

Flex Props

  as?: string; // polymorphic prop, e.g. main, footer...
  alignItems?: Alignment;
  alignContent?: AlignContent;
  justifyContent?: Justify;
  flexDirection?: Direction;
  flexWrap?: Wrap;
  flexFlow?: string;
  flex?: string;
  flexGrow?: number;
  flexShrink?: number;
  flexBasis?: string;
  order?: number;
  alignSelf?: Alignment;

License

MIT

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago