JSFiddle - React, Tailwind, and code Playground

by joplomacedo

HTML

<div class="resizable">
  <textarea class="resizable__textarea" disabled></textarea>
  <div class="resizable__content"></div>
</div>

CSS

* {
  box-sizing: border-box;
  border: 0;
  margin: 0;
  padding: 0;
}

.resizable {
  position: relative;
  border: 1px solid;
  display: inline-block;
  max-width: 100%;
}

.resizable__textarea {
  max-width: 100%;
  resize: horizontal;
  outline: none;
  min-width: 300px;
}

.resizable__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 1em;
  background: black;
}