future-standard / scorer-ui-kit

SCORER UI Components in react with styled components
Other
6 stars 3 forks source link

Split Layouts #465

Closed atomworks closed 2 months ago

atomworks commented 2 months ago

Description

This PR is focusd around the addition of the SplitLayout component, a layout component that allows for a resizable split layout that can be horizontal or vertical, and also lets you nest the split layout for more advanced options.

The drag handles allow the second area of the layout to be optionally hideable. The order can also be reversed to place the hideable content pane on the left instead. The minimum width setting will enforce a minimum container size, after which there is a point where continuing to try and shrink it will trigger the hiding mechanism.

https://github.com/user-attachments/assets/ddf64b0e-5bdc-42d8-bf35-3ab6fce5e89a

Other Changes:

This work also includes some minor additions, refactors and fixes as follows:

Future Considerations