UNPKG

spinners-react

Version:

Lightweight SVG/CSS spinners for React

12 lines 511 B
import React, { ComponentType, CSSProperties } from 'react'; import { SpinnerProps } from './helpers'; declare const defaultProps: { color: CSSProperties["color"]; enabled: boolean; size: CSSProperties["width"]; style: CSSProperties; }; export type SpinnersProps = Partial<typeof defaultProps>; export declare const withSharedProps: <P extends SpinnerProps>(Component: ComponentType<P>) => (props: SpinnersProps & P) => React.JSX.Element; export {}; //# sourceMappingURL=withSharedProps.d.ts.map