ui.panel_title

ui.panel_title(title, window_title=MISSING)

Create title(s) for the application.

Parameters

title : str | Tag | TagList

A title to display in the app’s UI.

window_title : str | MISSING_TYPE = MISSING

A title to display on the browser tab.

Returns

: TagList

A UI element.

Note

This result of this function causes a side effect of adding a title tag to the head of the document (this is necessary for the browser to display the title in the browser window). You can also specify a page title explicitly using the title parameter of the top-level page function (e.g., page_fluid).

Examples

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

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

app_ui = ui.page_fluid(ui.panel_title("Page title", "Window title"))


def server(input: Inputs, output: Outputs, session: Session):
    pass


app = App(app_ui, server)