JSFiddle - React, Tailwind, and code Playground

HTML

<div id="input_area">
  <div id="inner" class="content" contenteditable="true" data-hint="Click Here and Type"></div>
</div>

CSS

#input_area 
{
    background-color: yellow;
    display: flex;
    overflow-y:auto;
    max-height:300px;
    min-height:4em;
    cursor:auto;
}

#input_area > div.content 
{
    width: 100%;
    display:flex;
    align-items:center;
    margin:auto;
    outline:none
}

#input_area .content[contentEditable=true]:empty:not(:focus):before 
{
    content: attr(data-hint);
    color: #aaaaaa;
}