BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/revola/credit-card

Credit Card Dialog

revola/credit-card
FreeComponent

A responsive credit card form dialog with payment input validation - drawer on mobile, modal on desktop.

Install it

npx shadcn@latest add https://revola.sameerjs.com/r/credit-card.json

Source

registry/revola/examples/origin-ui/forms/payment/credit-card.tsxrevola.sameerjs.com/r/credit-card.json
1"use client";
2
3import { useId } from "react";
4import { usePaymentInputs } from "react-payment-inputs";
5import images, { type CardImages } from "react-payment-inputs/images";
6
7import { CreditCardIcon, WalletIcon } from "lucide-react";
8
9import { Button } from "@/components/ui/button";
10import { Checkbox } from "@/components/ui/checkbox";
11import { Input } from "@/components/ui/input";
12import { Label } from "@/components/ui/label";
13import {
14 ResponsiveDialog,
15 ResponsiveDialogContent,
16 ResponsiveDialogDescription,
17 ResponsiveDialogFooter,
18 ResponsiveDialogHeader,
19 ResponsiveDialogTitle,
20 ResponsiveDialogTrigger,
21} from "@/components/ui/revola";
22
23export default function CreditCardDialog() {
24 const id = useId();
25 const { meta, getCardNumberProps, getExpiryDateProps, getCVCProps, getCardImageProps } = usePaymentInputs();
26
27 return (
28 <ResponsiveDialog>
29 <ResponsiveDialogTrigger asChild>
30 <Button variant="outline" className="h-12 rounded-full px-6 capitalize">
31 Update Card
32 </Button>
33 </ResponsiveDialogTrigger>
34 <ResponsiveDialogContent className="sm:max-w-sm">
35 <div className="space-y-4 overflow-y-auto p-6 max-sm:pt-4">
36 <div className="flex flex-col gap-2">
37 <div>
38 <div className="flex size-11 shrink-0 items-center justify-center rounded-full border" aria-hidden="true">
39 <WalletIcon className="opacity-80" size={16} />
40 </div>
41 </div>
42 <ResponsiveDialogHeader className="text-left">
43 <ResponsiveDialogTitle>Update your card</ResponsiveDialogTitle>
44 <ResponsiveDialogDescription>Your new card will replace your current card.</ResponsiveDialogDescription>
45 </ResponsiveDialogHeader>
46 </div>
47
48 <form className="space-y-5">
49 <div className="space-y-4">
50 <div className="space-y-2">
51 <Label htmlFor={`name-${id}`}>Name on card</Label>
52 <Input
53 required
54 type="text"
55 id={`name-${id}`}
56 placeholder="John Doe"
57 className="[&:-webkit-autofill]:shadow-[0_0_0_30px_theme(colors.input)_inset]"
58 />
59 </div>
60 <div className="space-y-2">
61 <Label htmlFor={`number-${id}`}>Card Number</Label>
62 <div className="relative">
63 <Input
64 {...getCardNumberProps()}
65// … truncated

What it pulls in

npm packages

  • lucide-react
  • react-payment-inputs

Other registry items

  • button
  • checkbox
  • input
  • label
  • https://revola.sameerjs.com/r/revola.json

Files it writes

  • registry/revola/examples/origin-ui/forms/payment/credit-card.tsx

Facts

Registry
revola
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

revola.sameerjs.com SameerJS6/revola on GitHub Raw registry item This item as JSON

More from revola

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alert Dialogalert-dialogrevolaComponentsFreeno deps
Alert Dialog with Iconalert-dialog-with-iconrevolaComponentsFree1 dep
Change Plan Dialogchange-planrevolaComponentsFree1 dep
Checkout DialogcheckoutrevolaComponentsFree2 deps
Custom Scrollbar Dialogcustom-scrollbarrevolaComponentsFreeno deps
Delete Project Dialogdelete-projectrevolaComponentsFree1 dep
Edit Profile Dialogedit-profilerevolaComponentsFree1 dep · 3 files
Feedback DialogfeedbackrevolaComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex