Function freya::components::WindowDragArea

source ·
pub fn WindowDragArea(_: WindowDragAreaProps) -> Result<VNode, RenderError>
Expand description

Allow dragging the window when the cursor drag this component with a left mouse click.

§Example

fn app() -> Element {
    rsx!(
        WindowDragArea {
            label {
                height: "100%",
                width: "100%",
                "Drag Me"
            }
        }
    )
}

§Props

For details, see the props struct definition.

  • children : Element

    The inner children for the WindowDragArea