1.1.1 • Published 5 years ago

mui-flex-layout v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

mui-flex-layout :muscle:

BuildStatus code style: prettier

Install

yarn add --dev mui-flex-layout

Description

A simple reuseable solution to using material-ui with flex alignments

Usage

Layout

A full width & height container with flex-direction alignment up to your choosing.

import Layout from 'mui-flex-layout';
...
<Layout color={'#fffff'} flex-direction={'column'}>
    <Toolbar />
    <Navbar />
    <Content />
</Layout>

Row

A flex row container

import { Row } from 'mui-flex-layout';
...
<Row height={} width={}>
    <RowItem />
    <RowItem />
    <RowItem />
</Row>

Column

A flex column container

import { Column } from 'mui-flex-layout';
...
<Column height={} width={}>
    <ColumnItem />
    <ColumnItem />
    <ColumnItem />
</Column>

Padded

A Box with p={1} as a default

import { Padded } from 'mui-flex-layout';
...
<Padded padding={}>
    <ItemWithPadding />
</Padded>
<Padded>
  <SecondItemWithPadding />
</Padded

License

MIT © Sharon Grossman

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago