Face Scan Pay Button
Navy pay pill folds into a lit square, a biometric reticle sweeps a face glyph while a comet laps the rim, then it unfolds with a check.
Try it: Click — watch the scan loop, then the paid check.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/face-scan-pay-button.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/face-scan-pay-button. You can also copy the source into components/ui/face-scan-pay-button.tsx (view on GitHub).
Usage
import { FaceScanPayButton } from '@/components/ui/face-scan-pay-button'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
label / amount | string | 'Pay' / '$48.00' | Resting copy; amount repeats in the success label. |
successLabel / errorLabel | string | 'Paid' / 'Try again' | Result copy. |
onPay | () => void | Promise<unknown> | — | Payment work; the scan loops until it settles. Rejecting shakes into a retry state. |
minLoops / loopMs | number | 1 / 1500 | Minimum rim laps and lap duration. |
resetAfter | number | 2600 | Auto-reset delay in ms (0 keeps success). |
Dependencies
motionlucide-react
Related Buttons components
- Orbit Dot Export Button
Pill tucks down to its ring, a shaped comet orbits with a trailing progress arc, the ring floods solid, the arrow bends into a check and the pill reopens as the next action.
- Swallow Delete Button
Bin lid swings open on its hinge, the label’s letters arc inside, the lid snaps shut and a ring traces the receipt.
- Shredder Delete Button
Pill holds still while its icon works: the lid flips, a sheet feeds in, paper ribbons tumble out below and a tally counts each shred.
- Fill Progress Download Button
Arrow sinks away, a deeper blue floods the pill with a live percentage, then it condenses into a calm done chip.
- Cloud Launch Publish Button
The arrow launches out of the cloud on a puff of vapour, a progress seam draws along the bottom edge, and a check drops back into the cloud.
- Drop-In Cart Button
Pill tucks into a cart, a box springs into the basket, the cart rolls away and back while the badge and counter pop.