JSFiddle - React, Tailwind, and code Playground

by kynn

HTML

<textarea style="width:1ex" rows="2">1</textarea><br/>
    <textarea style="width:10ex" rows="2">1234567890</textarea><br/>
    <textarea style="width:20ex" rows="2">12345678901234567890</textarea><br/>
    <textarea style="width:40ex" rows="2">1234567890123456789012345678901234567890</textarea><br/>
    <textarea style="width:80ex" rows="2">12345678901234567890123456789012345678901234567890123456789012345678901234567890</textarea><br/>

CSS

textarea{
    resize:none;
    background-color:lightgray;
    padding:0;
    font-family:monospace;
}