Saudi forms and dates
OtpInput
One box per digit. Paste and SMS autofill fill all boxes. Left to right in Arabic too.
import { OtpInput } from "@percentsa/ui";Examples
Enter the code we sent to your phone
Code
export function OtpInputExample() {
const t = useT();
const [code, setCode] = useState("");
return (
<Stack gap={3}>
<Text size="sm" tone="muted">{t("Enter the code we sent to your phone", "أدخل الرمز الذي أرسلناه إلى جوالك")}</Text>
<OtpInput value={code} onValueChange={setCode} />
</Stack>
);
}