Skip to content
Forms

OTPOrbit

A one-time-code field. A light orbits the box you are typing in and each digit pops in. One real input underneath, so paste and SMS autofill just work.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
lengthnumber6Number of characters.
onChange(code: string) => void—Called on every change.
onComplete(code: string) => void—Called when the last box is filled.
labelstring"Verification code"Field name above the boxes.
hintstring—Help text under the boxes.
numericbooleantrueDigits only. false = letters and digits.
namestring—Form field name.
accentstring"#a78bfa"Orbit light colour.
classNamestring"w-full max-w-sm"Wrapper look.