Conversation
|
You can get away with less CSS if you design it as a modifier for https://play.tailwindcss.com/zrB3E7tjAq?file=css I left the outline on focus when it is in wrapper (label) but it can be removed and the same increased border size can be used for focus indication. |
|
I did some experiments on this a few months ago but I couldn't get the letter-spacing to work as expected. This looks promising 👍 Well done. |
still needs some work, it has issue on fully rounded themes like |
|
I managed to get rounded boxes for each char. v1: A variant with gap 0 should be separately defined, because it can be done with only one filled bg and repeated vertical lines, while using the input border and border radius for the external border. |
…ze variants Co-Authored-By: pdanpdan <pdanpdan@users.noreply.github.com>
|
per-cell rounded boxes via 12-layer tiled gradient compositor |
|
can you please put it in a play tailwind so we can check it? |
|
|
It looks like there's still a problem with the connected variant - it scrolls after you insert all digits |
Correct |
|
There's a UX issue, I'm not sure if there's a way to overcome it. Video from Vuetify OTP comparing to this PR, trying to remove the number 2: aa.mp4 |
|
I'm not sure this can be fixed without js |
|
I don't think the whole thing is ready with the current CSS limitations. |
New pure CSS OTP/PIN input component following daisyUI guidelines. No JavaScript required.