Dev Design Library

Card Field

A one-row card input for checkout. The number groups the way the brand prints it, then slides to its last four to make room for expiry and CVC.

Card Field preview
Library
Kokonut UI
Framework
React
Type
component
License
MIT
Dependencies
lucide-react, motion
Install
npx shadcn@latest add @kokonutui/card-field
Files
  • components/kokonutui/card-field.tsx
  • lib/utils.ts
Source
https://github.com/kokonut-labs/kokonutui

Categories

More from Kokonut UI