Skip to content

Commit

Permalink
#289 Spinner: Add HTMLAttributes<HTMLDivElement> to props
Browse files Browse the repository at this point in the history
  • Loading branch information
zaki-yama committed Jun 21, 2019
1 parent fd9d863 commit c26166e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/scripts/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { HTMLAttributes } from 'react';
import classnames from 'classnames';
import { registerStyle } from './util';

Expand All @@ -11,7 +11,10 @@ export type SpinnerProps = {
type?: SpinnerType;
};

export class Spinner extends React.Component<SpinnerProps, {}> {
export class Spinner extends React.Component<
SpinnerProps & HTMLAttributes<HTMLDivElement>,
{}
> {
static defaultProps: Pick<SpinnerProps, 'container' | 'size'> = {
container: true,
size: 'small',
Expand Down

0 comments on commit c26166e

Please sign in to comment.