FlexPanels Component
Description
The FlexPanels
component is a flexible, resizable layout container that allows dynamic panel resizing and optional drag-and-drop reordering.
Props
Prop | Type | Default | Description |
---|---|---|---|
panels |
number[] |
[1, 1] |
Initial flex sizes for each panel. |
children |
ReactNode[] |
- |
Components to be placed inside the panels. |
direction |
"horizontal" | "vertical" |
"horizontal" |
Defines the layout direction. |
dragEnabled |
boolean |
false |
Enables drag-and-drop reordering. |
Example Usage
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core