JSFiddle - React, Tailwind, and code Playground

by dafastestfingers

HTML

<div class="mini-tools">
    <div class="mini-btn collapse"></div>
    <div class="mini-btn delete"></div>
    <div class="mini-btn add-child"></div>
    <div class="mini-btn add-sibling"></div>
</div>

CSS

div {
    border: solid 1px black;
    box-sizing: border-box;
}

.mini-tools {
    height: 50px;
    position: relative;
    width: 50px;
}

.mini-btn {
    height: 50%;
    position: absolute;
    width: 50%;
}

.collapse {
    background: yellow;
    top: 0;
    left: 0;
}

.delete {
    background: blue;
    top: 0;
    right: 0;
}

.add-child {
    background: green;
    bottom: 0;
    left: 0;
}

.add-sibling {
    background: red;
    bottom: 0;
    right: 0;
}