GoScrobble/web/node_modules/react-spinners/interfaces.d.ts

27 lines
704 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import { SerializedStyles } from "@emotion/core";
export interface LengthObject {
value: number;
unit: string;
}
interface CommonProps {
color?: string;
loading?: boolean;
css?: string | SerializedStyles;
}
export declare type LengthType = number | string;
export interface LoaderHeightWidthProps extends CommonProps {
height?: LengthType;
width?: LengthType;
}
export interface LoaderSizeProps extends CommonProps {
size?: LengthType;
}
export interface LoaderSizeMarginProps extends LoaderSizeProps {
margin?: LengthType;
}
export interface LoaderHeightWidthRadiusProps extends LoaderHeightWidthProps {
margin?: LengthType;
radius?: LengthType;
}
export {};