From c26166e6c30a6247a6ede7af1ef1dfb1b495cdad Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Sat, 22 Jun 2019 07:31:32 +0900 Subject: [PATCH] #289 Spinner: Add `HTMLAttributes` to props --- src/scripts/Spinner.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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',