0.0.2 • Published 2 years ago

@cebus/react-layout v0.0.2

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 @cebus/react-layout package.

Using NPM

npm install @cebus/react-layout

Using Yarn

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

  2. 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>
  )
}
  1. 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.