def METHOD_NAME(self, group, items):
    submenu = create_element(
        "sl-dropdown",
        children=[
            create_element(
                "span",
                id=f"menu-{id(group)}",
                classes=["menu"],
                slot="trigger",
                content=group.text,
            ),
            create_element(
                "sl-menu",
                children=items,
            ),
        ],
    )
    return submenu