<wa-otp-input> can group passcode segments for you using the format attribute. Just add `#` to represent a character. Everything else is decoration.

div class="wa-stack"> !-- Two groups of three with a space: e.g. "ABC DEF" --> wa-otp-input label="Invite code" format="### ###"> /wa-otp-input> !-- Three groups of four joined by dashes: e.g. "1234-5678-9012" --> wa-otp-input label="License key" format="####-####-####"> /wa-otp-input> /div>