1.0.7 • Published 5 years ago

@react-toolset/mui-center v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Center Material-UI components

Centers children vertically and horizontally. Best suited for Material-UI components because it depends on MUI's style compiler. May be used in non-MUI projects as well, but will probably bloat your code bundle due to dependencies.

###Install npm install --save @react-toolset/mui-center

###Use

with Typescript
import React from 'react';
import Center, {CenterMode} from '@react-toolset/mui-center';

const Centered = ()=> {
        return <Center mode={CenterMode.Parent}>...</Center> 
}
with Javascript
import React from 'react';
import Center from '@react-toolset/mui-center';

const Centered = ()=> {
        return <Center mode="parent">...</Center> 
}
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago