Bin
2025-12-17 1d710f844b65d9bfdf986a71a3b924cd70598a41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { cn } from "../../utils";
 
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="skeleton"
      data-testid="skeleton-loader"
      className={cn(
        "bg-neutral-surface-active bg-no-repeat bg-shimmer-size bg-gradient-to-r",
        "from-white/5 via-white/20 to-white/5",
        "rounded-sm animate-shimmer",
        className,
      )}
      {...props}
    />
  );
}
 
// background-image: linear-gradient(90deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 20%), rgb(255 255 255 / 5%));
// background-size: 2em 100%;
// background-repeat: no-repeat;
// background-position: left -2em top 0;
// animation: shimmer 1.3s ease infinite;
 
export { Skeleton };