ui.nav_control

ui.nav_control(*args)

Place a control in the navigation container.

Parameters

*args: TagChild = ()

UI elements to display as the nav item.

See Also

Example

See nav_panel

Examples

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

## file: app.py
from shiny import App, ui

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


def server(input, output, session):
    pass


app = App(app_ui, server)