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

0.1.2 • Public • Published

React Flex

react-flex is a React Component to manage Flexbox layouts

For an equivalent and a recent version of the documentation with more examples, please visit the web site at https://devgalena.com/react-components/flex

Flexbox along the row direction

Create a Flexbox with flexDirection to be row ( by default ).

import { Flex } from "@devgalena/react-flex";

    <Flex>
      <span>Content 1</span>
      <span>Content 2</span>
      <span>Content 3</span>
    </Flex>

Flexbox row - Alternate

Create a Flexbox with flexDirection to be row explicitly.

import { Flex } from "@devgalena/react-flex";

    <Flex row>
      <span>Content 1</span>
      <span>Content 2</span>
      <span>Content 3</span>
    </Flex>

Flexbox - column

Create a Flexbox with flexDirection to be column.

import { Flex } from "@devgalena/react-flex";

    <Flex column>
      <span>Content 1</span>
      <span>Content 2</span>
      <span>Content 3</span>
    </Flex>

Flexbox - inline

Create a Flexbox with display set to be inline-flex.

import { Flex } from "@devgalena/react-flex";

    <Flex inline>
      <span>Content 1</span>
      <span>Content 2</span>
      <span>Content 3</span>
    </Flex>

For an equivalent and a recent version of the documentation with more examples, please visit the web site at https://devgalena.com/react-components/flex

/@devgalena/react-flex/

    Package Sidebar

    Install

    npm i @devgalena/react-flex

    Weekly Downloads

    3

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    10.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • hellokarthik