Skip to content
Docs
Components
Inputs
PinInput

PinInput

Component that is based on react-native-confirmation-code-field library.

https://github.com/retyui/react-native-confirmation-code-field (opens in a new tab)

Import

import { PinInput } from 'react-native-ficus-ui';

Usage

Props

Extends every Box props and CodeFieldProps from react-native-confirmation-code-field

https://github.com/retyui/react-native-confirmation-code-field/blob/master/API.md#codefield- (opens in a new tab)

colorScheme

The colorScheme property, will define focus border color on pin inputs.

TypeRequired
stringNo

mask

The mask property, a boolean indicating if code input should be masked

TypeRequired
booleanNo

placeholder

The character to display when masking a code

TypeRequired
stringNo

focusBorderColor

The border color when input is focused.

TypeRequired
stringNo

focusBorderWidth

The border width when input is focused.

TypeRequiredDefault
numberNo2

focusBorderStyle

The border style property when input is focused.

TypeRequiredDefault
"solid", "dashed", "dotted"No"solid"