index.tsx raw

   1  import { cn } from '@/lib/utils'
   2  
   3  export function LoadingBar({ className }: { className?: string }) {
   4    return (
   5      <div className={cn('h-0.5 w-full overflow-hidden', className)}>
   6        <div
   7          className="h-full w-full bg-gradient-to-r from-primary/40 from-25% via-primary via-50% to-primary/40 to-75% animate-shimmer"
   8          style={{
   9            backgroundSize: '400% 100%'
  10          }}
  11        />
  12      </div>
  13    )
  14  }
  15