Skip to content

Instantly share code, notes, and snippets.

View ksidpen's full-sized avatar
❤️

Harald Krull ksidpen

❤️
View GitHub Profile
@clinuxrulz
clinuxrulz / Window.tsx
Last active May 13, 2024 19:46
SolidJS reusable draggable/resizable window example (requires bootstrap style sheet and an icon for grip drag corner "svgs/icons/resize%20grip.svg")
import { batch, Component, createEffect, createMemo, onCleanup, onMount } from 'solid-js';
import { createStore } from 'solid-js/store';
const Window: Component<{
title?: string,
width?: number,
height?: number,
initX?: number,
initY?: number,
}> = (props) => {