Card field
- from @beamline
A payment card in one field: the number groups as it is typed and names its network, the expiry and security code follow on their own as each part completes, the number is checked (length and checksum) and the expiry must be in the future; when it is complete and you move on, the number folds to its last four digits.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @beamline/card-fieldComponent source
No live preview has been built for this component yet.
Registry dependencies0
The CLI adds no other registry items with this one.
Packages0
No npm packages are installed with it.