0.1.1 • Published 4 years ago

@rock-kit/ui-layout v0.1.1

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

category: packages

ui-layout

npm  build-status  MIT License  Code of Conduct

Deprecated Components

The ui-layout package will be removed in version 7.0.0. Please update your imports as follows:

Codemods are provided to assist in updating the packages. See ui-codemods

Deprecated Utilities

The ui-layout package will be removed in version 7.0.0. Please update your imports as follows:

Installation

yarn add @rock-kit/ui-layout

Usage

import React from 'react'
import { DrawerLayout } from '@rock-kit/ui-layout'

const MyLayout = () => {
  return (
    <DrawerLayout>
      <DrawerLayout.Tray>Hello from layout tray</DrawerLayout.Tray>
      <DrawerLayout.Content>Hello from layout content</DrawerLayout.Content>
    </DrawerLayout>
  )
}