"use client" import { InputOTP, InputOTPGroup, InputOTPSlot, } from "@/components/ui/input-otp" import { useState } from "react"; const ControlledOtp = () => { const [value, setValue] = useState("") return (
setValue(value)} >
{value === "" ? ( <>Enter your one-time password. ) : ( <>You entered: {value} )}
); }; export default ControlledOtp;