DUOTP

Forms

One-time passcode / PIN digit inputs.

import { DUOTP, DUPinInput } from 'deri-ui';
Live preview
typescript
<DUOTP length={6} onChange={(code) => console.log(code)} />

Props

PropTypeDefaultDescription
lengthnumber6Digit count
valuestringControlled value
onChange(value: string) => voidChange handler
radiusDURadius'md'Input corner radius

Usage

import { DUOTP, DUPinInput } from 'deri-ui';

<DUOTP length={6} onChange={(code) => console.log(code)} />

Customize with className, radius, and Tailwind utilities. Theme tokens come from deri-ui/tailwind.preset.

Related

© 2026 Deri Ui. Developed by Deribew Shimelis. Copy and use the code freely in your projects.