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
use *;
/// A back-to-top button.
///
/// Renders a fixed button that is on screen only while the `visible`
/// signal says so: it carries `c_euv_back_top_visible` when it is
/// showing and `c_euv_back_top_hidden` when it is not. The button stays
/// mounted either way — it is hidden with a class, not removed, so it
/// cannot lose its place in the stacking order.
///
/// # Arguments
///
/// - `VirtualNode<EuvBackTopProps>` - The props node containing the
/// button configuration.
///
/// # Returns
///
/// - `VirtualNode` - The back-to-top virtual DOM tree.