17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import * as React from "react";
|
|
import { cn } from "../lib/cn";
|
|
|
|
export function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
aria-hidden
|
|
className={cn(
|
|
"animate-pulse rounded bg-surface-2",
|
|
"motion-reduce:animate-none",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|