UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

20 lines (19 loc) 702 B
import React, { ReactNode } from "react"; export type SquareTimerProps = { /** Total seconds in the countdown */ total: number; /** Inner square size (without the stroke) in px */ size?: number; /** Stroke width in px */ stroke?: number; /** External control of the current time (seconds left). */ currentTime?: number; /** Callback fired each second with updated seconds left */ onTimeChange?: (seconds: number) => void; /** Children rendered inside the timer – typically a QR-code */ children?: ReactNode; /** Corner radius in px */ borderRadius?: number; }; declare const SquareTimer: React.FC<SquareTimerProps>; export default SquareTimer;