Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.1

PinInput

PinInput is a component used to capture pin codes or OTP (One-Time Password) inputs.

Source@yamada-ui/pin-input

Props

PinInputProps

colorScheme

Description

The visual color appearance of the component.

Type

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

errorBorderColor

Description

The border color when the input is invalid.

Type

"border" | "link" | BorderColor | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | ... 319 more ... | ColorModeArray<...>

focusBorderColor

Description

The border color when the input is focused.

Type

"border" | "link" | BorderColor | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | ... 319 more ... | ColorModeArray<...>

isDisabled

Description

If true, the form control will be disabled.

Type

boolean

Default

false

isInvalid

Description

If true, the form control will be invalid.

Type

boolean

Default

false

isReadOnly

Description

If true, the form control will be readonly.

Type

boolean

Default

false

isRequired

Description

If true, the form control will be required.

Type

boolean

Default

false

items

Description

The number of inputs to display.

Type

number

Default

4

manageFocus

Description

If true, focus will move automatically to the next input once filled.

Type

boolean

Default

true

mask

Description

If true, the input's value will be masked just like type=password.

Type

boolean

onChange

Description

Function called on input change.

Type

(value: string) => void

onComplete

Description

Function called when all inputs have valid values.

Type

(value: string) => void

otp

Description

If true, the pin input component signals to its fields that they should.

Type

boolean

placeholder

Description

The placeholder for the pin input.

Type

string

Default

'○'

size

Description

The size of the PinInput.

Type

"xs" | "sm" | "md" | "lg"

Default

md

type

Description

The type of values the pin-input should allow.

Type

"number" | "alphanumeric"

Default

'number'

value

Description

The value of the pin input.

Type

string

variant

Description

The variant of the PinInput.

Type

"outline" | "filled" | "flushed" | "unstyled"

Default

outline

PinInputFieldProps

isDisabled

Description

If true, the form control will be disabled.

Type

boolean

Default

false

isInvalid

Description

If true, the form control will be invalid.

Type

boolean

Default

false

isReadOnly

Description

If true, the form control will be readonly.

Type

boolean

Default

false

isRequired

Description

If true, the form control will be required.

Type

boolean

Default

false

Edit this page on GitHub

PreviousNumberInputNextPhoneInput