You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I totally forgot implementing a good DX for the placeholder option.
There's a workaround for rendering that placeholder, but that's logical and not ideal. However, as a workaround, you may be able to check if the placeholder is active by checking isPlaceholderActive = value.length === 0 && placeholder !== null. Then, you should be able to render only the placeholder[slotIdx] and style it as you wish.
I should definitely add a feature around this. There's currently no direct support to placeholder. I am now considering creating a feature for that.
Is there no support for placeholders on each InputOTPSlot or the whole InputOTPGroup?
The text was updated successfully, but these errors were encountered: