Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(#2545): change proptype of Spinner size
  • Loading branch information
illiteratewriter authored and davidacevedo committed Jun 8, 2022
1 parent b68eedd commit 2175cbb
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions src/Spinner.js
Expand Up @@ -4,33 +4,19 @@ import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';

const propTypes = {
/**
* Set a custom element for this component
*/
/** Set a custom element for this component */
tag: tagPropType,
/**
* Change animation of spinner
*/
/** Change animation of spinner */
type: PropTypes.oneOf(['border', 'grow']),
/**
* Change size of spinner
*/
size: PropTypes.string,
/**
* Change color of spinner
*/
/** Change size of spinner */
size: PropTypes.oneOf(['sm']),
/** Change color of spinner */
color: PropTypes.oneOf(['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark']),
/**
* Add custom class
*/
/** Add custom class */
className: PropTypes.string,
/**
* Change existing className with a new className
*/
/** Change existing className with a new className */
cssModule: PropTypes.object,
/**
* Pass children so this component can wrap the child elements
*/
/** Pass children so this component can wrap the child elements*/
children: PropTypes.string
};

Expand Down

0 comments on commit 2175cbb

Please sign in to comment.