diff --git a/react-spinkit/index.d.ts b/react-spinkit/index.d.ts index 05955e3f53..24de75a032 100644 --- a/react-spinkit/index.d.ts +++ b/react-spinkit/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-spinkit 1.1.4 // Project: https://github.com/KyleAMathews/react-spinkit -// Definitions by: Qubo , Mleko +// Definitions by: Qubo , Mleko , Tom Crockett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -8,7 +8,22 @@ declare namespace spinner { export interface SpinnerProps { - spinnerName?: string; + /** + * Specify spinner to use. + */ + spinnerName?: 'three-bounce' | 'double-bounce' | 'rotating-plane' | 'folding-cube' | 'wave' | 'wandering-cubes' | 'pulse' | 'chasing-dots' | 'circle' | 'cube-grid' | 'wordpress'; + /** + * Disable the initial fade-in of the spinner. + */ + noFadeIn?: boolean; + /** + * Change the default "spinner" className. + */ + overrideSpinnerClassName?: string; + /** + * Component className. + */ + className?: string; } export interface Spinner extends React.ComponentClass { diff --git a/react-spinkit/react-spinkit-tests.tsx b/react-spinkit/react-spinkit-tests.tsx index 8ceb7b0a89..6742096ebe 100644 --- a/react-spinkit/react-spinkit-tests.tsx +++ b/react-spinkit/react-spinkit-tests.tsx @@ -1,4 +1,23 @@ import * as Spinner from 'react-spinkit'; import * as React from 'react'; -let spinner = ; +// Examples taken from http://kyleamathews.github.io/react-spinkit/ +const spinners = [ + // Basic spinners + , + , + , + , + , + , + , + , + , + , + , + + // Spinner options + , + , + , +];