@hotosm/hanko-auth 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -80,6 +80,7 @@ export function AuthButton({ hankoUrl, onLogin }) {
80
80
  | `lang` | string | `"en"` | Language/locale code (e.g., "en", "es", "fr"). Enlish as fallback |
81
81
  | `button-variant` | string | `"filled"` | Button style: `filled`, `outline`, or `plain` |
82
82
  | `button-color` | string | `"primary"`| Button color: `primary`, `neutral`, or `danger` |
83
+ | `display` | string | `"default"`| Display mode: `default` (compact avatar) or `bar` (full-width bar with avatar + email + arrow) |
83
84
 
84
85
  ### Redirects
85
86
 
@@ -171,6 +172,18 @@ Customize the login button appearance with `button-variant` and `button-color`:
171
172
  ></hotosm-auth>
172
173
  ```
173
174
 
175
+ ### Bar Mode
176
+
177
+ Shows a full-width bar with avatar, email, and chevron arrow (ideal for mobile drawers/menus):
178
+
179
+ ```html
180
+ <hotosm-auth
181
+ hanko-url="https://login.hotosm.org"
182
+ display="bar"
183
+ redirect-after-login="/"
184
+ ></hotosm-auth>
185
+ ```
186
+
174
187
  ### Profile Mode
175
188
 
176
189
  Shows full authentication form (for login pages):