You can edit 8 Components for free. Get premium for unlimited access.
Accessible one-time password component with copy paste functionality.
The Pin Input component is used to enter a code for verification.
This component inherits props from the Pin Input.
You can edit the state with the default, active, filled, error, success or disabled parameter.

Image 2.1 : State default

Image 2.2 : State active

Image 2.3 : State filled

Image 2.4 : State error

Image 2.5 : State success

Image 2.6 : State disabled
The PinInput component is used to enter a code for verification.
This component inherits props from the Pin Input.
-
-
-
You can edit the state with the PinInputState.default, PinInputState.error, PinInputState.success, PinInputState.disabled parameter.
-
Preview
Code
const DlOTPInput()Add this code example to your project to see how the component works.
DlOTPInput(
size: DlOtpInputSize.lg,
state: DlOtpInputState.error
)
DlOTPInput is a fixed-size, fully tappable one-digit input component with masking behavior, size variants lg , md and sm , and visual states default , error , success and disabled .
States
Preview
Code
const Wrap(
spacing: DlSpacingTokens.p_16,
runSpacing: DlSpacingTokens.p_16,
children: [
DlOTPInput(
state: DlOtpInputState.error
),
DlOTPInput(
state: DlOtpInputState.success
),
],
)Size
Preview
Code
const Wrap(
spacing: DlSpacingTokens.p_16,
runSpacing: DlSpacingTokens.p_16,
children: [
DlOTPInput(
size: DlOtpInputSize.lg
),
DlOTPInput(
size: DlOtpInputSize.md
),
DlOTPInput(
size: DlOtpInputSize.sm
),
],
)Disabled
Preview
Code
-
DlOTPInput(
state: DlOtpInputState.disabled
)You have questions or need help?
You want to try?
Save time and money?