OTP Digit Boxes

Row of square digit cells with a blinking cursor in the next empty slot.

4
2
7

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Input2 } from "@/components/beste/piece/input2";

<Input2
  digits={[
    "4",
    "2",
    "7",
    "",
    "",
    ""
  ]}
  total={6}
/>