npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-window-manager-ui

v1.0.10

Published

A lightweight React component library for creating draggable, resizable windows with TypeScript support

Readme

React Window Manager UI - Draggable & Resizable Windows Component

NPM Downloads TypeScript License: MIT

A powerful and lightweight React component library for creating draggable, resizable, and fully customizable desktop-like window interfaces. Perfect for building admin panels, dashboards, IDEs, or any application requiring windowed interfaces with comprehensive TypeScript support.

Features

  • Draggable Windows - Smooth drag functionality with touch support
  • Advanced Resizing - Comprehensive resize controls with configurable handles
  • Animation System - Built-in animation types with smooth transitions
  • Fullscreen Support - Native fullscreen mode with custom animations
  • Touch Compatible - Full mobile and tablet support
  • Customizable UI - Custom icons, toolbars, and styling options
  • Flexible Constraints - Configurable min/max sizes and screen boundaries

Quick Start

Get started with React Window Manager UI in just 2 steps:

Step 1: Install the package

npm install react-window-manager-ui
bun add react-window-manager-ui

Step 2: Import and use

import React from "react";
import { Window } from "react-window-manager-ui";

function App() {
  return (
    <div style={{ position: "relative", width: "100vw", height: "100vh" }}>
      <Window
        id="example-window"
        title="My Application"
        position={{ x: 100, y: 100 }}
        size={{ width: 600, height: 400 }}
      >
        <div style={{ padding: "20px" }}>
          <h2>Welcome to Window Manager</h2>
          <p>This window is draggable, resizable, and fully customizable.</p>
        </div>
      </Window>
    </div>
  );
}

Advanced Usage

Custom Animations and Styling

<Window
  id="animated-window"
  title="Animated Window"
  animation="jellyfish"
  className="custom-window-style"
  icons={{
    fullscreen: <CustomFullscreenIcon />,
    fullscreenExit: <CustomExitIcon />,
    close: <CustomCloseIcon />,
  }}
>
  <div>Content with custom animations</div>
</Window>

Multiple Windows Example

import React, { useState } from "react";
import { Window } from "react-window-manager-ui";

function MultiWindowApp() {
  const [windows, setWindows] = useState([
    { id: "app1", title: "Calculator", x: 100, y: 100 },
    { id: "app2", title: "Text Editor", x: 300, y: 150 },
    { id: "app3", title: "File Manager", x: 500, y: 200 },
  ]);

  const removeWindow = (id: string) => {
    setWindows(windows.filter((w) => w.id !== id));
  };

  return (
    <div style={{ position: "relative", width: "100vw", height: "100vh" }}>
      {windows.map((window) => (
        <Window
          key={window.id}
          id={window.id}
          title={window.title}
          position={{ x: window.x, y: window.y }}
          size={{ width: 400, height: 300 }}
          onClose={() => removeWindow(window.id)}
        >
          <div style={{ padding: "20px" }}>Content for {window.title}</div>
        </Window>
      ))}
    </div>
  );
}

API Reference

Window Component

Props

| Property | Type | Default | Description | | -------------------- | ----------------------------------- | ----------------------------- | -------------------------------- | | id | string | Required | Unique identifier for the window | | title | string \| React.ReactNode | "Window" | Window title content | | children | React.ReactNode | - | Main window content | | position | { x: number; y: number } | { x: 100, y: 100 } | Initial window position | | size | { width: number; height: number } | { width: 800, height: 600 } | Initial window size | | toolbar | React.ReactNode \| string | - | Custom toolbar content | | className | string | "" | Additional CSS classes | | animation | WindowAnimationType | undefined | Animation type override | | resize | ResizeOptions | true | Resize configuration | | minSize | { width: number; height: number } | { width: 200, height: 150 } | Minimum window size | | maxSize | { width: number; height: number } | - | Maximum window size | | allowFullscreen | boolean | true | Enable fullscreen functionality | | icons | CustomIcons | - | Custom icon components | | onClose | () => void | - | Close event callback | | onToggleFullscreen | (isFullscreen: boolean) => void | - | Fullscreen toggle callback |

TypeScript Support

Full TypeScript definitions are included:

import {
  Window,
  WindowProps,
  WindowAnimationType,
} from "react-window-manager-ui";

const CustomWindow: React.FC<WindowProps> = (props) => {
  return <Window {...props} />;
};

License

MIT License - see LICENSE file for details.