Overview
Key Features
- Draggable Windows: Easy-to-use drag logic with configurable boundaries.
- Resizable Windows: Supports dynamic width and height adjustments, respecting constraints.
- Context-Managed State: Exposes hooks like useWindowContext, useDraggableWindow, and useResizableWindow for seamless integration.
- Customizable Appearance: Fully headless design allows complete control over UI.
- TypeScript Support: Strongly-typed API ensures safe and predictable development.
Technologies Used
- React 18
- TypeScript
- Tailwind CSS (optional styling)
- Vite for dev environment
- Tsup for bundling
Challenges and Learnings
Outcome
Usage Example
Tsx