Leptos Resize
This crate provides a simple user-resizable split container for the Leptos web framework. Horizontal and vertical splits are both supported.
(See examples
directory for a full CSR example)
Leptos compatibility
Crate version | Compatible Leptos version |
---|---|
0.1 - 0.2 | 0.7 |
Features
- Horizontal and vertical split
- Split ratio can be bound to
RwSignal
- Works with server-side rendering
- Arbitrary number of splits
- Nested splits
Split direction
The split direction can be changed by setting the direction
property.
Bind size percentages to signal
The size percentages can be bound to a RwSignal
by setting the percentages
property. The RwSignal
should contain a Vec
with one element less than the
amount of children you pass. The last percentage will always be calculated.
The values sum should be less than 100
.
Nest multiple split containers
The <ResizableSplit>
container can also be nested to create more complex
resizable layouts.