The main nav used in various admin apps, without nav items.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
childrenJSX.Element

React element children.

customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

refobject | null

Ref to the component.

Since
  • 1.1.15
Returns:

The NavBar component.

Type: 
JSX.Element
Example
import NavBar from '@gravityforms/components/react/admin/modules/NavBar';

return (
    <NavBar customClasses={ [ 'example-class' ] }>
        { children }
    </NavBar>
);