Post by Anshuman Atrey

Day 2/8 - Interactive OTP Input by Anshuman Atrey

six small inputs sit at the hexagon corners and form a clean, focused verification widget


A separate fixed version computes real pixel positions from the SVG polygon (viewBox → rendered coordinates) and places node centers exactly on the hex vertices

ResizeObserver & resize handlers keep it correct across sizes.


URL : https://codepen.io/anshumanatrey/pen/KwdBoxY

Your upvotes and feedback are welcome!

Words have more power than we think. Be kind.