We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8b3a7 commit 2112c97Copy full SHA for 2112c97
src/routes/home/Editor.tsx
@@ -1,4 +1,5 @@
1
import { Button } from "@/components/ui/button";
2
+import { Skeleton } from "@/components/ui/skeleton";
3
import { UseSnippetsReturn } from "@/routes/home/types";
4
import Editor, { OnMount } from "@monaco-editor/react";
5
import Plus from "lucide-react/dist/esm/icons/plus";
@@ -205,6 +206,7 @@ const MonacoEditorComponent: React.FC<EditorProps> = ({
205
206
<Editor
207
width="100%"
208
height="100%"
209
+ loading={<Skeleton className="flex flex-1 w-full h-full" />}
210
language={language?.id || "plaintext"}
211
theme={monacoTheme}
212
value={code}
0 commit comments