2.1.2 • Published 2 years ago

bpk-component-split-input v2.1.2

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

bpk-component-split-input

Backpack split-input component.

Installation

npm install bpk-component-split-input --save-dev

Usage

import React from 'react';
import BpkSplitInput, { INPUT_TYPES } from 'bpk-component-split-input';

export default () => (
  <BpkSplitInput
    type={INPUT_TYPES.number}
    name="otpInput"
    id="otpInput"
    label="otp input"
    onChange={(e) => console.log('On Input Change')}
    onSubmit={(e) => console.log('On Submit')}
  />
);

Props

PropertyPropTypeRequiredDefault Value
idstringtrue-
namestringtrue-
typeINPUT_TYPES (one of)falseINPUT_TYPES.number
inputLengthnumberfalse4
placeholderstringfalse-
labelstringtrue-
largeboolfalsetrue
onChangebooltrue-
onSubmitbooltrue-
2.1.2

2 years ago

2.1.1

2 years ago

2.0.5

2 years ago

2.0.6

2 years ago

2.1.0

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago