gpui-global

Installation
SKILL.md

Overview

Global state in GPUI provides app-wide shared data accessible from any context.

Key Trait: Global - Implement on types to make them globally accessible

Quick Start

Define Global State

use gpui::Global;

#[derive(Clone)]
struct AppSettings {
    theme: Theme,
    language: String,
}
Installs
225
GitHub Stars
11.8K
First Seen
Jan 21, 2026
gpui-global — longbridge/gpui-component