A layout component with a header, sidebar and a content area with two split content options.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
|
- Since
- 3.3.0
Returns:
The ModularSidebar component.
- Type:
- JSX.
Element
Example
import RightSidebar from '@gravityforms/components/react/admin/modules/Layouts/RightSidebar';
<RightSidebar
Header={ <h1>Header</h1> }
SideBarChildren={ <div>Primary Sidebar</div> }
SecondaryContentChildren={ <div>Secondary Sidebar</div> }
customClasses={ 'my-custom-class' }
customAttributes={ { 'data-custom-attribute': 'custom' } }
layoutTagName={ 'section' }
sidebarMobilePosition="start"
>
<div>Content</div>
</RightSidebar>