Raw
1 import { OtpInput } from "@medusajs/ui"
2 import { useState } from "react"
3
4 export default function OtpInputError() {
5 const [otp, setOtp] = useState("123")
6 return (
7 <div className="w-[250px]">
8 <OtpInput value={otp} onChange={setOtp} aria-invalid={true} />
9 </div>
10 )
11 }