@cebus/react-layout
v0.0.2
Published
The layout package provides components to help position content in your site.
Downloads
16
Readme
Layout
The Layout component help your develop a standardized application layout.
Use
- Install the @cebus/react-layout package.
Using NPM
npm install @cebus/react-layout
Using Yarn
yarn add @cebus/react-layout
Install the @cebus/react-provider and our theme tokens from @cebus/react-theme
Set up the provider in your app:
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Integrate the Layout components.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Container, Stack } from '@cebus/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.