Frame
The Frame provides the main structure to the entire application.
Features
A layout component that holds ArcNav, and other layout elements.
The Frame provides the main structure to the entire application and helps position the Page, Sidebar and global navigation correctly. To position the global navigation,
There are no live demos of the layout components since we can't render
Frame
asyncronously loads the ArcNav component.
See the Page layout foundations for more information on different layout options and styles.
#Import
import { Frame } from '@wpmedia/ads-layout'
#Usage
Caution
SinceArcNav
is included in Frame
, you must pass a valid
navigation configuration.#Without Sidebar
ArcNav
outside of Arc.
<Frame navConfig={...}>
<Page>Body</Page>
</Frame>
#With Sidebar
<Frame navConfig={...}>
<Page
sidebar={
<Sidebar>Sidebar</Sidebar>
}
>
Body w/ Sidebar
</Page>
</Frame>