@pongo-ui/react-layout
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pongo-ui/react-layout

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

173 kB

Total Files

197

Last publish

Collaborators

  • pongobuild
  • czearing