express.ui.nav_control

express.ui.nav_control()

Context manager for a control in the navigation container.

This function wraps nav_control.

Examples

#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400

## file: app.py
from shiny.express import ui

with ui.navset_card_underline(id="tab"):
    with ui.nav_control():
        ui.a("Shiny", href="https://shiny.posit.co", target="_blank")

    with ui.nav_control():
        ui.a(
            "Learn Shiny",
            href="https://shiny.posit.co/py/docs/overview.html",
            target="_blank",
        )