@pongo-ui/react-layout
v0.0.4
Published
The layout package provides components to help position content in your site.
Downloads
4
Readme
Layout
The Layout component help your develop a standardized application layout.
Use
- Install the @pongo-ui/react-layout package.
Using NPM
npm install @pongo-ui/react-layout
Using Yarn
yarn add @pongo-ui/react-layout
Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme
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>
)
}
- 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.