0.0.7 • Published 5 years ago

@c8s/flex v0.0.7

Weekly downloads
10
License
MIT
Repository
-
Last release
5 years ago

@c8s/flex

A component for flex layout.

github npm:version typescript license browserslist code style:prettier

Usage

/**
 * As to prepare of using the `Flex`
 * 
 * ```bash
 * yarn add @c8s/flex react @types/react styled-components @types/styled-components
 * ```
 */
import Flex from '@c8s/flex';

Example

() => (
  <Flex.column style={{color: '#393939'}}>
    <Flex.row>
      <Flex.itemFluid.row>
        <Flex.itemFluid.column>
          <Flex.row.center>item1-1</Flex.row.center>
          <Flex.row>item1-2</Flex.row>
        </Flex.itemFluid.column>
      </Flex.itemFluid.row>
      <Flex.item>item2</Flex.item>
    </Flex.row>
    <Flex.row>Flex</Flex.row>
  </Flex.column>
);

Contributors

Thanks goes to these wonderful people (emoji key):

純📖Aki-Japan📖

This project follows the all-contributors specification. Contributions of any kind welcome!