Skip to content

Navlink components

Simple helpers around dmc NavLink component.

Helper method for creating a navlink

def navlink(label: str,
            href: str,
            icon: str | None = None
            ) -> dmc.NavLink:
    """
    A simple navigation link component.
    """
    return dmc.NavLink(label=label, leftSection=DashIconify(icon=icon), href=href)