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

0.18.2 • Public • Published

@another-ui/flex

Just another flex layout for React

Usage

import React from 'react';
import { Flex } from '@another-ui/flex';
import '@another-ui/flex/dist/flex.css';

export const Example = () => (
  <Flex
    align="stretch"
    direction="row"
    justify="center"
    wrap
  >
    <Flex
      align="center"
      direction="column"
      grow
      justify="start"
      shrink
    >
      <Flex basis={50} grow>Flex</Flex>
      <Flex basis={25} shrink>Flex</Flex>
    </Flex>
  </Flex>
);

Package Sidebar

Install

npm i @another-ui/flex

Weekly Downloads

3

Version

0.18.2

License

MIT

Unpacked Size

14.3 kB

Total Files

19

Last publish

Collaborators

  • nghuudan