You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/components/header/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,8 +156,10 @@ If you want a fully custom login UI you can override the slot:
156
156
</script>
157
157
```
158
158
159
-
The component dispatches `auth-action-select` for logged-out actions and `account-menu-select` for logged-in account choices.
160
-
When `authState` is `logged-in`, the dropdown always renders the configured `logoutAction` as the last item.
159
+
The built-in logout button automatically transitions the header from `logged-in` to `logged-out`, and emits a bubbling, composed `logout-select` event with `detail: { role: 'logout' }`.
160
+
161
+
The component also dispatches `auth-action-select` for logged-out actions and `account-menu-select` for logged-in account choices.
162
+
When `authState` is `logged-in`, the dropdown always renders the configured `logoutLabel` as the last item.
0 commit comments