Page layout
A collection of components which let you compose an application's page layout.Deprecated
This package is deprecated. Use our new navigation system.
Installation
| Install | yarn add @atlaskit/page-layout |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/page-layout, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
PageLayout props
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Called when left-sidebar is collapsed. |
|---|---|
| Type | (leftSidebarState: LeftSidebarState) => void |
| Description | Called when left-sidebar is expanded. |
|---|---|
| Type | (leftSidebarState: LeftSidebarState) => void |
| Description | No description. |
|---|---|
| Default | "Skip to:" |
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | The height of the slot. |
|---|---|
| Type | number |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | It saves the height in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
Main props
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | It saves the width in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | The width of the slot. |
|---|---|
| Type | number |
Content props
| Description | React children |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal |
| Description | A |
|---|---|
| Type | string |
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Controls whether the LeftSidebar mounts in a collapsed state, this will override the setting in localStorage. |
|---|---|
| Type | "collapsed" | "expanded" |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | Called when left-sidebar is collapsed and the mouse leaves the area. |
|---|---|
| Type | () => void |
| Description | Called after flyout delay when left-sidebar is collapsed and the mouse enters the area. |
|---|---|
| Type | () => void |
| Description | Called when left-sidebar resize ends using mouse or touch. |
|---|---|
| Type | (leftSidebarState: LeftSidebarState) => void |
| Description | Called when left-sidebar resize starts using mouse or touch. |
|---|---|
| Type | (leftSidebarState: LeftSidebarState) => void |
| Description | You can override prop(s) for the mentioned component(s). |
|---|---|
| Type | { ResizeButton?: { render?: (Component: React.ElementType<ResizeButtonProps, keyof React.JSX.IntrinsicElements>, props: ResizeButtonProps) => React.ReactElement<...>; }; } |
| Description | Display label for the expand/collapse button for the left sidebar. |
|---|---|
| Type | string |
| Description | Display label for grab area/slider to resize the left side bar. This will be rendered through assistive technologies. |
|---|---|
| Type | string |
| Description | It saves the width in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | The |
|---|---|
| Type | string |
| Description | Controls the width when LeftSidebar mounts, this will override the setting in localStorage. |
|---|---|
| Type | number |
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | It saves the width in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | The width of the slot. |
|---|---|
| Type | number |
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | It saves the width in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | The width of the slot. |
|---|---|
| Type | number |
LeftPanel props
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | It saves the width in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | The width of the slot. |
|---|---|
| Type | number |
RightPanel props
| Description | React children! |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | No description. |
|---|---|
| Type | string |
| Description | Sets the position to fixed. |
|---|---|
| Type | boolean |
| Description | It saves the width in local storage. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | The width of the slot. |
|---|---|
| Type | number |