Input Credit Card
NewUnlimitedA payment form with a live card preview: digits group in fours, a highlight glides to the part you are editing, and the card flips over for the security code.
inputcredit-cardpaymentflipform
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/input-credit-card.tsx. This is an Unlimited component, so the CLI needs your API key: set it up once, then install it by name.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
More inputs
- Input Currency FormatA large amount field that groups thousands as you type without losing the caret, pads cents on blur, and grows to hug its digits.
- Input Floating LabelText fields whose label rests as a placeholder, then springs up into a small caption on focus or when filled; inset and underline variants.
- Input Inline EditText that turns into a field in place with no layout shift; Enter or blur saves with a brief tick, Escape puts the old value back.
- Input Mention AutocompleteA comment box that opens a people list when you type @, filters as you go, inserts the handle with Enter or Tab and tints finished mentions inline.
- Input Number StepperA spinbutton whose digits roll up or down like an odometer; hold a button to repeat with acceleration, or use the arrow keys.
- Input OTP BoxesOne-time-code boxes that auto-advance, accept a pasted code, step back on Backspace, pop each digit in and shake or hop on error or success.