Function freya::components::ResizableContainer  
source · pub fn ResizableContainer(
    _: ResizableContainerProps,
) -> Result<VNode, RenderError>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"
                }
            }
        }
    )
}§Props
For details, see the props struct definition.
- direction:- String- Direction of the container, - vertical/- horizontal. Default to- vertical.
- children:- Element- Inner children for the ResizableContainer().