From 6ec259a0e71174651bae95d4628138bf6fd68742 Mon Sep 17 00:00:00 2001
From: kj_sh604
Date: Sun, 15 Mar 2026 16:19:35 -0400
Subject: refactor: packages/

---
 packages/excalidraw/components/Island.tsx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 packages/excalidraw/components/Island.tsx

(limited to 'packages/excalidraw/components/Island.tsx')

diff --git a/packages/excalidraw/components/Island.tsx b/packages/excalidraw/components/Island.tsx
new file mode 100644
index 0000000..7baf307
--- /dev/null
+++ b/packages/excalidraw/components/Island.tsx
@@ -0,0 +1,23 @@
+import "./Island.scss";
+
+import React from "react";
+import clsx from "clsx";
+
+type IslandProps = {
+  children: React.ReactNode;
+  padding?: number;
+  className?: string | boolean;
+  style?: object;
+};
+
+export const Island = React.forwardRef<HTMLDivElement, IslandProps>(
+  ({ children, padding, className, style }, ref) => (
+    <div
+      className={clsx("Island", className)}
+      style={{ "--padding": padding, ...style }}
+      ref={ref}
+    >
+      {children}
+    </div>
+  ),
+);
-- 
cgit v1.2.3

