A layout component with a header, primary and secondary sidebars and a content area.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
|
- Since
- 1.1.15
Returns:
The ModularSidebar component.
- Type:
- JSX.
Element
Example
import { ModularSidebar } from '@gravityforms/admin';
<ModularSidebar
Header={ <h1>Header</h1> }
PrimarySideBarChildren={ <div>Primary Sidebar</div> }
SecondarySideBarChildren={ <div>Secondary Sidebar</div> }
customClasses={ 'my-custom-class' }
customAttributes={ { 'data-custom-attribute': 'custom' } }
layoutTagName={ 'section' }
>