@jpmorganchase/mosaic-layouts v0.1.0-beta.74
Mosaic Layouts
@jpmorganchase/mosaic-layouts
, containing re-usable Mosaic layouts and the UI elements needed to build your own layouts.
Installation
yarn add @jpmorganchase/mosaic-layouts
What is a layout component ?
These are the components that can be composed into full layouts.
<LayoutBase>
is a wrapper for all pages that includes a space for the fixed-position header and a space for the main content block.<LayoutFullWidth>
is designed to sit directly insideLayoutBase
and is a wrapper for full-width content (adding constraints for wide screens) and includes a space for the in-content-column footer.<LayoutColumns>
is designed to sit directly insideLayoutBase
and allows for multiple columned arrangements. There is a space for a primary sidebar that will be left-aligned. There is an optional space for a secondary sidebar that will sit to the right of the main content column.
Example full-width layout
<LayoutBase Header={YourHeaderComponent}>
<LayoutFullWidth Footer={YourFooterComponent}>
{/* page content goes here */}
<LayoutFullWidth/>
<LayoutBase/>
Example layout with sidebars
<LayoutBase Header={YourHeaderComponent}>
<LayoutColumns
PrimarySidebar={YourLeftHandSidebarComponent}
SecondarySidebar={YourRightHandSidebarComponent}
Footer={YourFooterComponent}
>
{/* page content goes here */}
<LayoutColumns/>
<LayoutBase/>
22 days ago
1 month ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
5 months ago
5 months ago
5 months ago
6 months ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
8 months ago
6 months ago
6 months ago
10 months ago
11 months ago
9 months ago
10 months ago
9 months ago
9 months ago
10 months ago
10 months ago
8 months ago
9 months ago
8 months ago
8 months ago
1 year ago
1 year ago
12 months ago
12 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago