@airbnb/lunar-layouts
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Lunar Layouts

Provides pre-defined page layouts that support top and side navigation bars.

yarn add @airbnb/lunar-layouts

Usage

This packages provides a handful of components for common page layout scenarios, for example, three column layouts, two columns layouts, split layouts, so on and so forth.

To use, import the LayoutShell and render near the root of the application. Column based layouts may then be rendered as children of the shell.

import LayoutShell from '@airbnb/lunar-layouts';
import ThreeColumnLayout from '@airbnb/lunar-layouts/lib/components/ThreeColumnLayout';

<LayoutShell sideBar={<SideBar />}>
  <ThreeColumnLayout fluid before={<LeftColumn />} after={<RightColumn />}>
    <Content />
  </ThreeColumnLayout>
</LayoutShell>;

Readme

Keywords

none

Package Sidebar

Install

npm i @airbnb/lunar-layouts

Weekly Downloads

45

Version

3.0.2

License

MIT

Unpacked Size

65.1 kB

Total Files

60

Last publish

Collaborators

  • brieb
  • airbnbeng
  • lencioni
  • milesj
  • ljharb