A modern, accessible two-factor authentication input component built with Svelte, TypeScript, and TailwindCSS.
Clone the repository
git clone https://github.com/rahulserver/svelte-2fa.git
cd svelte-2fa
Install dependencies
npm install
Start the development server
npm run dev
Open your browser and visit http://localhost:5173
npm run build
The built files will be in the dist directory.
npm run check
The project uses:
src/
āāā components/ # Reusable components
ā āāā Button.svelte
ā āāā InputField.svelte
ā āāā LockIcon.svelte
āāā stores/ # State management
ā āāā lockStore.ts
āāā routes/ # Page components
ā āāā Card.svelte
āāā App.svelte # Root component
MIT
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)