express.ui.nav_menu(title, *, value=None, icon=None, align='left')

Context manager for a menu of nav items.

This function wraps nav_menu.


title: TagChild

A title to display. Can be a character string or UI elements (i.e., tags).

value: Optional[str] = None

The value of the item. This is used to determine whether the item is active (when an id is provided to the nav container), programmatically select the item (e.g., update_navs), and/or be provided to the selected argument of the navigation container (e.g., navset_tab).

icon: TagChild = None

An icon to appear inline with the button/link.

align: Literal[‘left’, ‘right’] = ‘left’

Horizontal alignment of the dropdown menu relative to dropdown toggle.