10000 feat: add shadcn skeleton · coder/coder@05bd144 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05bd144

Browse files
committed
feat: add shadcn skeleton
1 parent a513a4d commit 05bd144

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copied from shadc/ui on 06/20/2025
3+
* @see {@link https://ui.shadcn.com/docs/components/skeleton}
4+
*/
5+
import { cn } from "utils/cn";
6+
7+
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
8+
return (
9+
<div
10+
data-slot="skeleton"
11+
className={cn("bg-surface-tertiary animate-pulse rounded-md", className)}
12+
{...props}
13+
/>
14+
);
15+
}
16+
17+
export { Skeleton };

0 commit comments

Comments
 (0)
0