GiessC / sweep

MIT License
0 stars 0 forks source link

"Code" component #54

Open GiessC opened 7 months ago

GiessC commented 7 months ago

For some of our authentication-involved pages, we need the user to provide a code from an email or MFA. Currently, the component used is just a text field, but we should create a new component which is a separate text field for each digit of the code.

  1. Create component that takes digits: number in its props
  2. Render digits number of text fields
  3. When the user enters a number, it should focus the next text field
  4. When the user presses backspace, it should focus the previous text field