Layout is a 1-dimensional layout system with options to control the relative sizing of its children's elements. Layout spans the full width of the viewport area.
Usage
import { Layout } from 'nr1'
Examples
Basic
ReferenceError: Layout is not defined
Split left small
ReferenceError: Layout is not defined
Split right medium
ReferenceError: Layout is not defined
Split left small and split right medium
ReferenceError: Layout is not defined
Stacked layout
ReferenceError: Layout is not defined
Props
childrenrequirednode
Layout items to display.
classNamestring
Appends class names to the component.
fullHeightboolean
Expands the layout to occupy all available height.
previewboolean
Visually draws the boxes of the layout and its layout items.
styleobject
Inline style for custom styling.
Methods
Layout.render
function () => undefined