@kadoui/react
Version:
Kadoui primitive components for React
9 lines (8 loc) • 348 B
JavaScript
"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { use } from "react";
import { OtpContext } from "./OtpContext";
export function OtpHiddenInput({ name, ...p }) {
const { getInputsValue } = use(OtpContext);
return (_jsx("input", { type: "hidden", tabIndex: -1, name: name || "otp", value: getInputsValue(), ...p }));
}