How to Build a Composable Stack Component
Photo by Sean Stratton on Unsplash One of the simplest and yet most common layout patterns found on the web is putting one element on top of another element with consistent space between them. From form labels, to paragraphs of text, to social media feeds. They all need to stack one thing on top of another with uniform space between them. Let's say we are building the following component: