About
A multi-cell input for typing a short confirmation code or PIN one character per cell, with numeric or text mode, grouping, masking, paste-fill and arrow/backspace navigation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pin Input to your project and fits it to your theme.
Code
How Pin Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import PinInput from "@/components/ui/pin-input";
export default function PinInputDemo() {
const [code, setCode] = React.useState("");
return (
<div className="flex items-center gap-3 rounded-lg bg-[#0b0b0f] p-8">
<PinInput
value={code}
onValueChange={setCode}
aria-label="Confirmation code"
/>
<span style={{ minWidth: 90, fontSize: 13, color: "var(--o-text-3)" }}>
{code || "nothing yet"}
</span>
</div>
);
}
















