1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use *;
/// Simple avatar image for the current browser-hydrated user.
///
/// Renders `fallback` until clerk-js has supplied a user image URL.
///
/// # Example
///
/// ```no_run
/// use dioxus::prelude::*;
/// use dioxus_clerk::*;
///
/// #[component]
/// fn HeaderAvatar() -> Element {
/// rsx! {
/// SignedIn {
/// UserAvatar {
/// class: "h-8 w-8 rounded-full",
/// fallback: rsx! { span { class: "h-8 w-8 rounded-full bg-base-300" } },
/// }
/// }
/// }
/// }
/// ```
]
alt: String,
/// Attributes (including `id` and `class`) spread onto the generated
/// `<img>` (for example `loading`, `width`, or `data-*`).
attributes: ,
/// Rendered until a browser-hydrated user image URL is available.
fallback: Element,
)