A layout component with a header, primary and secondary sidebars and a content area.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
childrenJSX.Element

React element children.

customAttributesobject

Custom attributes for the layout.

customClassesstring | Array | object

Custom classes for the layout.

HeaderJSX.Element

The header element.

layoutTagNamestring

The tag name for the layout.

PrimarySideBarChildrenJSX.Element

The primary sidebar element.

SecondarySideBarChildrenJSX.Element

The secondary sidebar element.

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' }
>