-
Notifications
You must be signed in to change notification settings - Fork 988
Closed
Labels
Description
Description
It would be great PinInput could get an autofocus prop as well as a manual focus option.
In the normal Input component it's solved by:
- an
autofocusprop - exposing the
inputRef
Additional context
In case not all users have / use 2FA we render the PinInput component dynamically.
In such cases it would be great, if we could autofocus it once rendered. Also an exposed focus method (or an input ref) could allow to focus the first field again, in case the user inserts an invalid OTP.