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
47
48
use ;
/// A spinner component: a spinning loader icon for pending states.
///
/// The spinner is `1em` square by default, so it scales with the surrounding
/// text and sits inline next to it; pass `size` to set the dimensions
/// explicitly. The `attrs` (such as `class`) are forwarded to the underlying
/// `<svg>`; a `class` among them is appended to the computed classes.
///
/// ```rust
/// view! {
/// button(
/// attrs: attributes! { disabled=(true) },
/// spinner()
/// "Saving..."
/// )
/// }
/// ```
pub async ]
size: Length,
/// The label announced to assistive technology.
label: String,
/// Extra attributes for the `<svg>` element.
mut attrs: Attributes,
)