@sudarshanaui/animated-otp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ .otp-anim {
2
+ display: flex;
3
+ gap: 12px;
4
+ }
5
+
6
+ input {
7
+ width: 50px;
8
+ height: 60px;
9
+ text-align: center;
10
+ font-size: 24px;
11
+ background: #f0f0f0;
12
+ border: 2px solid transparent;
13
+ border-radius: 12px;
14
+ outline: none;
15
+ transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
16
+ color: #333;
17
+ }
18
+
19
+ input:focus {
20
+ transform: translateY(-5px) scale(1.1);
21
+ border-color: #6200ea;
22
+ background: white;
23
+ box-shadow: 0 10px 20px rgba(98, 0, 234, 0.2);
24
+ }
25
+
26
+ @keyframes shake {
27
+ 0%, 100%: [object Object];
28
+ 20%, 60%: [object Object];
29
+ 40%, 80%: [object Object];
30
+ }
31
+
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './AnimatedOTP.css';
3
+
4
+ export const AnimatedOTP = (props) => {
5
+ return (
6
+ <>
7
+ <div className="otp-anim"><input type="text" maxlength="1" placeholder="•" /><input type="text" maxlength="1" placeholder="•" /><input type="text" maxlength="1" placeholder="•" /><input type="text" maxlength="1" placeholder="•" /></div>
8
+ </>
9
+ );
10
+ };
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # Animated OTP
2
+
3
+ Generated by Sudarshana UI.
4
+
5
+ ## Usage
6
+
7
+ ```jsx
8
+ import { AnimatedOTP } from './AnimatedOTP';
9
+
10
+ <AnimatedOTP />
11
+ ```
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './AnimatedOTP';
package/package.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@sudarshanaui/animated-otp",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "peerDependencies": {
6
+ "react": ">=16"
7
+ }
8
+ }