1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 20:14:21 +00:00
bluelib/src/components/Split
2021-01-25 19:37:58 +01:00
..
index.js First commit (of this branch) 2021-01-25 19:37:58 +01:00
Readme.md First commit (of this branch) 2021-01-25 19:37:58 +01:00

A panel which splits horizontally the contained panels into multiple columns of the same size (if possible).

import Bluelib from "../Bluelib";
import Box from "./index";

<Bluelib>
    <Box>
        1 / 1
    </Box>
    
    <Split>
        <Box>
            1 / 2
        </Box>
        <Box>
            2 / 2
        </Box>
    </Split>
    
    <Split>
        <Box>
            1 / 3
        </Box>
        <Box>
            2 / 3
        </Box>
        <Box>
            3 / 3
        </Box>        
    </Split>
    
    <Split>
        <Box>
            1 / 4
        </Box>
        <Box>
            2 / 4
        </Box>
        <Box>
            3 / 4
        </Box>
        <Box>
            4 / 4
        </Box>
    </Split>
</Bluelib>