Function freya_components::ResizableContainer

source ยท
pub fn ResizableContainer(__props: ResizableContainerProps) -> Element
Expand description

Resizable container, used in combination with ResizablePanel and ResizableHandle.

Example:

fn app() -> Element {
    rsx!(
        ResizableContainer {
            direction: "vertical",
            ResizablePanel {
                initial_size: 50.0,
                label {
                    "Panel 1"
                }
            }
            ResizableHandle { }
            ResizablePanel {
                initial_size: 50.0,
                min_size: 30.0,
                label {
                    "Panel 2"
                }
            }
        }
    )
}