OTP Input
tsx
import { OTPInput } from "@/components/godui/otp-input";export function OTPInputDemo() {return <OTPInput length={6} onComplete={(code) => console.log(code)} />;}import { OTPInput } from "@/components/godui/otp-input";
export function OTPInputMasked() {
return <OTPInput length={6} mask />;
}import { OTPInput } from "@/components/godui/otp-input";
export function OTPInputStatus() {
return (
<div className="flex flex-col gap-6">
<OTPInput length={6} status="error" defaultValue="1234" />
<OTPInput length={6} status="success" defaultValue="123456" />
</div>
);
}import { OTPInput } from "@/components/godui/otp-input";export function OTPInputDemo() {return <OTPInput length={6} onComplete={(code) => console.log(code)} />;}