Files
UT-Registration-Plus/src/views/components/common/Spinner/Spinner.tsx
2024-03-06 15:12:44 -06:00

18 lines
456 B
TypeScript

import clsx from 'clsx';
import React from 'react';
import styles from './Spinner.module.scss';
type Props = {
testId?: string;
className?: string;
style?: React.CSSProperties;
};
/**
* A simple spinner component that can be used to indicate loading.
*/
export default function Spinner({ className, testId, style }: Props): JSX.Element {
return <div data-testid={testId} style={style} className={clsx(styles.spinner, className)} />;
}