@c8s/flex
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@c8s/flex

A component for flex layout.

github npm:version typescript license browserslist code style:prettier

Usage

/**
 * As to prepare of using the `Flex`
 * 
 * ```sh
 * 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!

Readme

Keywords

none

Package Sidebar

Install

npm i @c8s/flex

Weekly Downloads

4

Version

0.0.7

License

MIT

Unpacked Size

42 kB

Total Files

37

Last publish

Collaborators

  • akijpn
  • nju33