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 */
}
by caub
<div class="editable" contenteditable></div>
.editable:empty:before {
content: 'Type text here';
opacity: .7;
display: block; /* For Firefox */
}