JSFiddle - React, Tailwind, and code Playground

by whelkaholism

HTML

<div class="ScrollView">
  <div class="VerticalStackLayout">
    <label class="header">App</label>
    <div class="FlexLayout">
      <label>Search</label>
      <input type="text" />
      <button>Go</button>
    </div>
    <label>Another item</label>
    <label>Another item</label>
    <label>Another item</label>
    <label>Another item</label>
    <label>Another item</label>
    <label>Another item</label>
  </div>
</div>

CSS

body {
  background: #404040;
  padding: 40px;
}

.VerticalStackLayout {
  display: flex;
  flex-direction: column;
}

.header {
  font-size: 24px
}

.ScrollView {
  height: 100px;
  overflow-y: auto;
  border: 1px solid #000000;
  background: #ffffff;
}

.FlexLayout {
  display: flex;
  flex-wrap: wrap;
}