@dynamic-labs/sdk-react-core
Version:
A React SDK for implementing wallet web3 authentication and authorization to your website.
17 lines (16 loc) • 778 B
TypeScript
import { ReactElement } from 'react';
import { Iconic } from '@dynamic-labs/iconic';
import { Icon } from '../../shared';
import { ClassStyleProps } from '../../utils/types';
type IconWithSpinnerProps = ClassStyleProps & {
Icon?: Icon | Iconic | ReactElement | null;
/** This forces fo render the Icon as an FC even if it does not evaluate to type 'function' */
treatAsFunctionComponent?: boolean;
customSpinnerColor?: string;
iconSize?: number;
indicator?: 'connected' | 'walletConnect';
isSpinning?: boolean;
};
export declare const iconRatio: number;
export declare const IconWithSpinner: ({ iconSize, Icon, isSpinning, className, style, indicator, customSpinnerColor, treatAsFunctionComponent, }: IconWithSpinnerProps) => JSX.Element;
export {};