From 227ae89c0334fc89ad8aa933f9b2d05b144b5913 Mon Sep 17 00:00:00 2001 From: ngc2207 Date: Sat, 11 Jan 2025 08:30:27 +0800 Subject: [PATCH] feat: add Skeleton component for loading placeholders in the code editor --- code-editor/src/components/ui/skeleton.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 code-editor/src/components/ui/skeleton.tsx diff --git a/code-editor/src/components/ui/skeleton.tsx b/code-editor/src/components/ui/skeleton.tsx new file mode 100644 index 0000000..d7e45f7 --- /dev/null +++ b/code-editor/src/components/ui/skeleton.tsx @@ -0,0 +1,15 @@ +import { cn } from "@/lib/utils" + +function Skeleton({ + className, + ...props +}: React.HTMLAttributes) { + return ( +
+ ) +} + +export { Skeleton }