OTP Web Component #4240
Mashiane
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
OTP Input Component
A lightweight, customizable OTP (One-Time Password) input component built as a native Web Component. Perfect for implementing verification codes, PINs, and secure authentication flows.
Check this YouTube Video - https://youtu.be/zSZg6x9mS_o
✨ Features
🎯 Native Web Component - Framework agnostic, works with any library or plain HTML
⌨️ Keyboard Navigation - Full support for arrow keys, backspace, and auto-focus
📋 Paste Support - Automatically fills all fields from clipboard
✅ Input Validation - Type-specific validation with visual error feedback
🎨 Customizable - Configurable length and input types
🔒 Secure - Password type support for PIN entries
♿ Accessible - ARIA labels and proper autocomplete attributes
📱 Mobile Friendly - Optimized input modes for mobile keyboards
🎭 Animated Errors - Shake animation for invalid inputs
🔔 Event-Driven - Custom events for completion and errors
https://github.com/Mashiane/DaisyUI---OTP
Beta Was this translation helpful? Give feedback.
All reactions