0.0.2 • Published 8 months ago

react-auth-input v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

react-auth-input

NPM Software License npm npm GitHub actions state

A React component for handling authentication code inputs.

Demo

Installation

npm install react-auth-input
yarn add react-auth-input
pnpm add react-auth-input

Usage

import React from 'react';

import AuthInput from 'react-auth-input';

const App = () => {
  const handleCodeCompletion = (value: string) => {
    console.log('Submitting code', value);
  };

  return (
    <AuthInput
      length={6}
      type='alphanumeric'
      onCodeCompletion={handleCodeCompletion}
    />
  );
};

Development

pnpm is used for this project.

Using Storybook:

pnpm storybook
0.0.2

8 months ago

0.0.1

9 months ago