Plain horizontal nav (no sticky positioning or theme toggle; use AppBar for that). Supports linkComponent / linkProp for routers.

Props

  • brandReactNode

    Brand name or element.

  • linksNavbarLink[]
    Default: []

    Navigation links. See the NavbarLink table below.

  • actionsReactNode

    Controls on the right.

  • linkComponentElementType
    Default: 'a'

    Component used for links, e.g. a router Link.

  • linkPropstring
    Default: 'href'

    Name of the destination prop on linkComponent (e.g. "to" for react-router).

  • labelstring
    Default: 'Main'

    Accessible name of the nav.

  • classNamestring
    Default: ''

    Extra classes for the root element.

  • hrefstring

    Destination of the link.

  • labelstring

    Text of the link.

  • activeboolean
    Default: false

    Marks the current page.

  • ...linkProps

    Any other attribute is passed to the link element.