JSFiddle - React, Tailwind, and code Playground

by serGlazkov

HTML

<input type="text" pattern="[0-9]{3}[-][0-9]{3}[-][0-9]{2}[-][0-9]{2}"/>