diff --git a/src/scripts/Spinner.tsx b/src/scripts/Spinner.tsx index 689dcf87c..5c74205c2 100644 --- a/src/scripts/Spinner.tsx +++ b/src/scripts/Spinner.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { HTMLAttributes } from 'react'; import classnames from 'classnames'; import { registerStyle } from './util'; @@ -11,7 +11,10 @@ export type SpinnerProps = { type?: SpinnerType; }; -export class Spinner extends React.Component { +export class Spinner extends React.Component< + SpinnerProps & HTMLAttributes, + {} +> { static defaultProps: Pick = { container: true, size: 'small',