Fixed sidebar - scrollable content

3/4/2020

A simple Tailwind layout to create a sticky sidebar and scrollable content next to it.

The original source is this tweet by Caleb Porzio.

<div class="flex">
    <aside class="h-screen sticky top-0">
        // Fixed Sidebar
    </aside>

    <main>
        // Content
    </main>
</div>