99.10.0 • Published 4 years ago

@temporg/ui-drawer-layout v99.10.0

Weekly downloads
1
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 @temporg/ui-drawer-layout

Usage

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

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