Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { ReactNode } from 'react'
|
||||
|
||||
interface LoadingSpinnerProps {
|
||||
message?: string
|
||||
ariaLabel?: string
|
||||
}
|
||||
|
||||
export function LoadingSpinner({ message = 'Loading...', ariaLabel = 'Loading' }: LoadingSpinnerProps): ReactNode {
|
||||
return (
|
||||
<div role="status" aria-label={ariaLabel} aria-busy={true} data-testid="loading-spinner">
|
||||
<div data-testid="spinner-icon" role="presentation">⊙</div>
|
||||
<p data-testid="spinner-message">{message}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user