Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A card form with a live card that fills in as you type and turns over for the security code.
npx shadcn@latest add @venusui/credit-card-formRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/credit-card-form.tsxAlso adds the shadcn button, input components if your project doesn't have them yet.
The code behind the preview above.
credit-card-form-demo.tsx
import { CreditCardForm } from "@/components/ui/credit-card-form"
export default function CreditCardFormDemo() {
return <CreditCardForm />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| submitLabel | string | "Save card" | Button text. |
| successMessage | string | "Card details look valid." | Shown after valid details are submitted. |
| onComplete | (details: CardDetails) => void | — | Receives the validated details. |
All <form> props except onSubmit.
lucide-react for icons. shadcn button and input. The CLI installs them. React 19 and Tailwind CSS v4.onComplete details directly to your payment provider’s SDK. Never log them or store them on your own server.autocomplete value and an error tied to it. The card picture is decorative.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A card that tilts in 3D toward the pointer with spring physics.
A flight boarding pass with a perforated stub and code that flips to the fare and baggage details.
A light that travels around the border of a card or container.