0.0.4 • Published 2 years ago

@pongo-ui/react-layout v0.0.4

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

Layout

The Layout component help your develop a standardized application layout.

Use

  1. Install the @pongo-ui/react-layout package.

Using NPM

npm install @pongo-ui/react-layout

Using Yarn

yarn add @pongo-ui/react-layout
  1. Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Layout components.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Container, Stack } from '@pongo-ui/react-layout'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Container>
        <Stack>
        ...
        </Stack>
      </Container>
    <Provider>
  )
}

API

To learn more about the Layout API take a look at the Container and Stack Interface files.