Navbar React Component

    Navbar React component represents Navbar component.

    • NavLeft / F7NavLeft
    • NavRight / F7NavRight
    • NavTitle / F7NavTitle
    • NavTitleLarge / F7NavTitleLarge

    Navbar Properties

    Navbar Events

    Navbar React component (<Navbar>) has additional slots for custom elements:

    • default - element will be inserted as a child of <div class="navbar-inner"> element
    • before-inner - element will be inserted right before <div class="navbar-inner"> element
    • after-inner - element will be inserted right after <div class="navbar-inner"> element
    • left - element will be inserted in navbar’s left element
    • right - element will be inserted in navbar’s right element
    • title - element will be inserted in navbar’s title element
    • - element will be inserted in navbar’s large title text element

    Examples

    Minimal layout

    1. <Navbar title="My App"></Navbar>

    Minimal layout with back link

    Without “sliding” transition effect (affects iOS theme only)

    1. <Navbar title="My App" backLink="Back" sliding="{false}"></Navbar>

    With additional right link to open right panel

    With large title

    1. {/* with different large title text */}
    2. <Navbar title="My App" backLink="Back" large titleLarge="Large Title"></Navbar>

    All three parts

    Full custom layout

    1. <Navbar>
    2. <NavLeft>
    3. <Link>Left Link</Link>
    4. </NavLeft>
    5. <NavTitle>My App</NavTitle>
    6. <NavRight>
    7. <Link>Right Link</Link>
    8. </Navbar>