@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
18 lines (17 loc) • 627 B
TypeScript
import React, { ReactNode } from "react";
export type CircleTimerProps = {
/** Total seconds in the countdown */
total: number;
/** Diameter (outer) in px – should be an even integer */
size?: number;
/** Stroke width in px – integer */
stroke?: number;
/** Externally controlled seconds left */
currentTime?: number;
/** Fired each second with updated seconds left */
onTimeChange?: (seconds: number) => void;
/** Child can be placed at the centre (e.g. an icon) */
children?: ReactNode;
};
declare const CircleTimer: React.FC<CircleTimerProps>;
export default CircleTimer;