PIN Input

The PIN input field is often used when users are required to provide a string of characters to securely access their accounts and data and authorize sensitive actions.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab
Helper text

Usage

import { PinInput } from 'bio-bind-ui';
<PinInput
  errorText='Error text'
  helperText='Helper text'
  label='Label'
  mode='light'
  onChange={() => {}}
  showMask
  values={['', '', '', '']}
/>

Examples

Values

Use the value to add the field to the pin input.


Disabled (optional)

Use disabled to restrict the input pin value from being entered.


Error (optional)

Use error when there is an error in the pininput value.

Error text

Mode (optional)

Use mode to use dark or light.


Props

PropsRequiredDefaultTypedescription
helperTextfalse-stringHelper text information to provide pin input information.
isErrorfalsefalsebooleanIf true, pin input will be set to error state.
errorTextfalse-stringError text information to provide input pin information if it is an error.
labelfalse-stringThe label text for the pin input.
disabledfalsefalsebooleanIf true, pin input will be set to disabled state.
modefalselightlight darkThe theme mode of the pin input (light or dark).
idfalse-stringA unique identifier for the radio.
placeholderfalse-stringPlacholder information to provide input pin input area information.
typefalse-React.HTMLInputTypeAttributeUnique identifier for type pin input.
showMaskfalsetruebooleanIf true, the filed pin input will be set masking.
valuesfalse-string[]The information value of the pin input.
autoFocusfalsefalsebooleanIf true, the pin input will be set to auto focus.
autoTabfalsefalsebooleanIf true, the pin input will be set to auto tab.
onChangefalse-(newValue: string[], index: number, values: string[]) => voidCallback function to run when the pin input is clicked.
formatfalse-(value: string) => stringUnique identifier for the value format pin input.
BIND © Biofarma Innovate Next-level Design .