PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
give / src / Admin / components / Spinner / index.tsx

index.tsx in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/Admin/components/Spinner/index.tsx

36 lines 744 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import classNames from 'classnames';
2 import styles from './style.module.scss';
3
4 /**
5 * @since 4.4.0
6 */
7 type SpinnerSize = 'tiny' | 'small' | 'medium' | 'large';
8
9 /**
10 * @since 4.4.0
11 */
12 type SpinnerProps = React.HTMLAttributes<HTMLDivElement> & {
13 size?: SpinnerSize;
14 };
15
16 /**
17 * @since 4.4.0
18 */
19 const Spinner = ({size = 'small', ...rest}: SpinnerProps) => {
20 const spinnerClasses = classNames({
21 [styles.spinner]: true,
22 [styles.large]: size === 'large',
23 [styles.medium]: size === 'medium',
24 [styles.small]: size === 'small',
25 [styles.tiny]: size === 'tiny',
26 });
27
28 return (
29 <div className={spinnerClasses} {...rest}>
30 {' '}
31 </div>
32 );
33 };
34
35 export default Spinner;
36