React hooks and components for building widgets in the widget-js ecosystem. This library provides a comprehensive set of tools to interact with the widget system, manage window states, and handle system events.
npm install @widget-js/react @widget-js/core
# or
yarn add @widget-js/react @widget-js/core
# or
pnpm add @widget-js/react @widget-js/coreImport the built-in CSS once in your app entry (e.g. main.tsx):
import '@widget-js/react/style.css'- Window Management: Control window size, position, and animations easily.
- System Integration: Interact with system tray, notifications, and shortcuts.
- Widget Lifecycle: Access widget instances, parameters, and storage.
- Event Handling: Simplified hooks for keyboard, mouse, and IPC events.
- UI Components: Ready-to-use components like
WindowControls.
- Tailwind CSS
- shadcn/ui
Preview: https://widget-js.github.io/react/
npx skills@latest add widget-js/reactwidget-react-components: Helps AI choose and reuse existing components insrc/components.widget-react-hooks: Helps AI choose and combine existing hooks insrc/hooks.
skills/
widget-react-components/
SKILL.md
widget-react-hooks/
SKILL.md
- Each skill must stay in its own folder and must contain a
SKILL.mdfile. - Keep the skill name and directory name stable so the
skillsCLI can discover them correctly.
MIT