umbraco / Umbraco.UI

Umbraco UI Components
MIT License
109 stars 36 forks source link

[Feature]: Component for one-time-code input #787

Open iOvergaard opened 2 months ago

iOvergaard commented 2 months ago

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

1.8.0

Summary

I would like a component that helps you input a code you might have received in an SMS or an authenticator app. The amount of digits should be configurable. It should support the autocomplete="one-time-code" attribute. It could also potentially support the autocomplete="webauthn" attribute (source).

Ideas

Something like this would be nice, where you can decide how many digits you want to receive:

Source

UnifiOS:

bjarnef commented 2 months ago

I was thinking of this recently as I am currently working on a project using PrimeVue: https://primevue.org/inputotp/

Some features that could be useful:

Besides that when it comes to 2FA/MFA a QR Code component could be useful.