Formats dates, phone numbers, cards and your own patterns as you type. The caret stays put in the middle and on paste, and deleting across a dash works.
pnpm dlx shadcn@latest add "https://miseui.junsu4621.workers.dev/r/mask-input.json"