An open API service indexing awesome lists of open source software.

https://github.com/halafi/styled-flex-lite

lightweight reusable Flex component
https://github.com/halafi/styled-flex-lite

Last synced: 3 months ago
JSON representation

lightweight reusable Flex component

Awesome Lists containing this project

README

          

# Styled Flex Component

[![npm](https://img.shields.io/npm/v/styled-flex-lite.svg)](https://www.npmjs.com/package/styled-flex-lite)

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

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

export default () => (

Hello

World


);
```

## 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