Skip to content

Commit

Permalink
Add reactstrap Spinner and SpinnerProps types
Browse files Browse the repository at this point in the history
The Spinner component was added to reactstrap here: reactstrap/reactstrap#1352
  • Loading branch information
twilco committed Jan 19, 2019
1 parent b4b9cb9 commit 814422a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/reactstrap/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ export { ProgressProps } from './lib/Progress';
import { default as Row_ } from './lib/Row';
export class Row<T = {}> extends Row_<T> {}
export { RowProps } from './lib/Row';
import { default as Spinner_ } from './lib/Spinner';
export class Spinner<T = {}> extends Spinner_<T> {}
export { SpinnerProps } from './lib/Spinner';
import { default as TabContent_ } from './lib/TabContent';
export class TabContent<T = {}> extends TabContent_<T> {}
export { TabContentProps } from './lib/TabContent';
Expand Down
14 changes: 14 additions & 0 deletions types/reactstrap/lib/Spinner.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react';
import { CSSModule } from '../index';

export type SpinnerProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
children?: string;
className?: string;
color?: string;
cssModule?: CSSModule;
size?: string;
type?: string;
} & T;

declare class Spinner<T = {[key: string]: any}> extends React.Component<SpinnerProps<T>> {}
export default Spinner;

0 comments on commit 814422a

Please sign in to comment.