JSFiddle - React, Tailwind, and code Playground

by caub

HTML

<div class="editable" contenteditable></div>

CSS

.editable:empty:before {
  content: 'Type text here';
  opacity: .7;
  display: block; /* For Firefox */
}