1.0.0 • Published 2 years ago

@react-styless/pin-input v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

react-styless/pin-input

Simple pin input component for React without style.

Installation

// with npm
$ npm install @react-styless/pin-input --save

Usage

This is the basic usage of pin-input

import PinInput from '@react-styless/pin-input';
const App = () => {
  const handleComplete = (value: string) => {
    console.log(value);
  }
  return (
    <PinInput onComplete={handleComplete}>
      <input type="text" />
      <input type="text" />
      <input type="text" />
      <input type="text" />
    </PinInput>
  );
}
AttributeTypeDescription
childrenReactElement[]
onComplete(v: string) => void
1.0.0

2 years ago

0.2.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago