@cbinsights/fds
Version:
Form: A design system by CB Insights
26 lines (25 loc) • 907 B
TypeScript
import React from 'react';
import Icon from 'components/Icon';
export interface CircleInfo {
radius: number;
circumference: number;
centerOffset: number;
}
/**
*
* @param {Number} circleSize bounding box size of circle in px
* @param {Number} strokeWidth width of circle stroke
*/
export declare const getCircleInfo: (circleSize: number, strokeWidth: number) => CircleInfo;
export interface CountdownButtonProps {
/** Duration in ms of countdown animation */
duration: number;
/** Used to render a FDS Icon (should only be used for FDS Icons, e.g. Icon={DenyIcon}) */
Icon?: Icon;
/** adds a label to IconButton */
label?: string;
/** Click callback for button */
onClick?: React.MouseEventHandler<HTMLButtonElement>;
}
declare const CountdownButton: ({ label, Icon, duration, onClick, }: CountdownButtonProps) => JSX.Element;
export default CountdownButton;