gpui-actions

Community

Wire actions and events in GPUI apps.

Authorcnwzhu
Version1.0.0
Installs0

System Documentation

What problem does it solve?

GPUI Actions provides a structured way to implement user interactions and event-driven behavior in GPUI applications, replacing ad-hoc event handling with a type-safe, scalable approach.

Core Features & Use Cases

  • Type-safe event handling using the Action trait and actions! macro.
  • Keyboard shortcuts and action dispatch for consistent UX.
  • Mouse and focus events (on_click, on_mouse_down, on_focus, on_blur) for interactive UIs.
  • Reusable patterns for building responsive components that react to user input.
  • Use Case: Build a toolbar with Save and Open actions that respond to keyboard shortcuts and update state across windows.

Quick Start

Run gpui-actions within your GPUI project, define actions with the actions! macro, bind handlers with on_action or cx.listener, and trigger updates via cx.notify() or dispatch_action.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gpui-actions
Download link: https://github.com/cnwzhu/gpui-skills/archive/main.zip#gpui-actions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.