JSFiddle - React, Tailwind, and code Playground

by VVetya

HTML

<form name="myform">
    <input type="text" name="cardcode" pattern="[0-9]{2}\s[0-9]{2}\s[0-9]{2}" placeholder="XX XX XX">
</form>