JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
<div class="scrollSection">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
  <div class="box">4</div>
</div>
</div>

CSS

.container {
  display: flex;
  flex-flow: row nowrap;
  border: 1px solid red;
  width: 170px;
  overflow: scroll;
  padding: 5px;
}
.scrollSection {
  display: flex;
  flex-flow: row nowrap;
  width: 170px;
  overflow: scroll;
  padding: 1px;
}
.box {
  background: gray;
  width: calc(40px + 10px);
  height: 40px;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-right: 10px !important;
  flex-shrink: 0;
  /* padding-right: 10px !important; */
}