Function layers
Source pub fn layers<VT: ViewTuple + 'static>(children: VT) -> impl IntoView
Expand description
Create a stack of overlapping layers.
Each child view is positioned absolutely to fill the container,
making them overlap. This is useful for testing z-index behavior.
§Example
ⓘlet view = layers((
Empty::new().z_index(1), Empty::new().z_index(10), ));