Edge

Edge lets you place elements on the edge of a container.


Add icing 🧊 on the edge. Any edge

Just pick an edge and you’ll have your element on the edge. It might get cold with too much ice though.

index.html
<div class="Stack">
<div class="Edge-topleft"> Top left </div>
<!-- ... other positions ... -->
</div>
TopLeft 🧊
Top 🧊
TopRight 🧊
Left 🧊
Right 🧊
BtmLeft 🧊
Btm 🧊
BtmRight 🧊

Text rotation not included. Rotate text with Writing

Full-width and full-height edges supported

Just add full to the Edge class and you’ll get it.

index.html
<div class="Stack">
<div class="Edge-topfull"> Top full </div>
<!-- ... other positions ... -->
</div>
Top full
Bottom full
Left Full
Right Full

Micro Edge Control

Each edge corner has start, center and end modifiers that let you control edge position with extra precision

index.html
<div class="Stack [--radius]">
<div class="Edge-topleft-center"> ... </div>
<div class="Edge-bottomright-center"> ... </div>
<!-- ... other edges ... -->
</div>
TopLeft Center
BtmRight Center