We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a55970 commit b0f2c7dCopy full SHA for b0f2c7d
3 files changed
src/components/Elements/Spinner/Spinner.tsx
@@ -0,0 +1,17 @@
1
+import clsx from 'clsx'
2
+import './Spinner.css'
3
+
4
+const sizes = {
5
+ small: 'small',
6
+ medium: 'medium',
7
+ large: 'large',
8
+}
9
10
+export type SpinnerProps = {
11
+ size?: keyof typeof sizes
12
+ className?: string
13
14
15
+export const Spinner = ({ size = 'medium', className = '' }: SpinnerProps) => {
16
+ return <div className={clsx('spinner', className, sizes[size])}></div>
17
src/components/Elements/Spinner/index.ts
@@ -0,0 +1 @@
+export * from './Spinner'
src/components/Elements/index.ts
@@ -12,5 +12,6 @@ export * from './Modal'
export * from './Panel'
export * from './SearchBar'
export * from './SearchBarWithLogo'
export * from './Steps'
export * from './UserTags'
0 commit comments