0.1.1 • Published 4 years ago

@rock-kit/ui-drawer-layout v0.1.1

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

category: packages

ui-drawer-layout

npm  build-status  MIT License  Code of Conduct

A main-content-plus-tray layout component

Components

The ui-drawer-layout package contains the following:

Installation

yarn add @rock-kit/ui-drawer-layout

Usage

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

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