packageDocumentation module import "./Spinner.scss" ; import * as React from "react" ; public deprecated export enum SpinnerSize { /** width/height of 16px */ Small , /** width/height of 32px */ Medium , /** width/height of 64px */ Large , /** width/height of 96px */ XLarge } public deprecated export interface SpinnerProps { /** Size of spinner */ size ? : SpinnerSize ; /** CSS class for size of spinner */ sizeClass ? : string ; } public deprecated export class Spinner extends React . PureComponent < SpinnerProps > { public override render ( ) { let sizeClass ; if ( this . props . sizeClass ) sizeClass = this . props . sizeClass ; else { switch ( this . props . size ) { case SpinnerSize . Small : sizeClass = "core-spinner-small" ; break ; case SpinnerSize . Large : sizeClass = "core-spinner-large" ; break ; case SpinnerSize . XLarge : sizeClass = "core-spinner-xlarge" ; break ; case SpinnerSize . Medium : default : sizeClass = "core-spinner-medium" ; break ; } } return ( < div className = { sizeClass } / > ) ; } }