1.0.8 • Published 4 months ago

centertoviewport v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Center To Viewport

A React Component to center anything in the middle of the viewport

How to use it?

First, install it using npm:

npm install centertoviewport

And wrap your code with the CenterToViewport component:

import { CenterToViewport } from 'centertoviewport';

function App() {
  return (
    <CenterToViewport>
      <h1>This is centered</h1>
    </CenterToViewport>
  );
}

export default App;

Warning

For the correct functioning of the component, ensure your viewport has no padding or margin.

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago