API Reference
Use this reference for GTKX package APIs: rendering, testing, navigation, components, and configuration. It is generated from the package sources.
For native widget props, signals, and methods, use your project's generated element reference. gtkx codegen writes .gtkx/reference/index.md for coding agents; gtkx docs produces browsable Markdown under docs/reference. These pages match the GIR libraries installed for that project.
Import native classes, enums, and functions from @gtkx/gi/<namespace>, and JSX elements from @gtkx/jsx/<namespace>. Those modules are generated locally; their APIs are separate from the GTKX package reference here.
Packages
Apps
| Package | Description |
|---|---|
| @gtkx/react | React renderer for native GTK and Adwaita apps. |
| @gtkx/cli | Development and packaging commands for GTK apps built with GTKX. |
| @gtkx/config | Typed configuration for GTK apps built with GTKX. |
Libraries
| Package | Description |
|---|---|
| @gtkx/components | GTK collection views, selection controls, and toasts for React. |
| @gtkx/css | CSS-in-JS styling for GTK widgets in GTKX. |
| @gtkx/navigation | React Navigation navigators for GTK and Adwaita apps. |
| @gtkx/forms | React Hook Form controls for GTK and Adwaita apps. |
| @gtkx/animated | React Spring animations for GTK widgets in GTKX. |
| @gtkx/i18n | Gettext localization for GTK apps through react-i18next. |
| @gtkx/cairo | Cairo drawing for GTK apps built with GTKX. |
| @gtkx/gl | OpenGL 4.6 core bindings for GTK GL areas in GTKX. |
Testing and tools
| Package | Description |
|---|---|
| @gtkx/testing | Test GTKX apps against real GTK widgets. |
| @gtkx/vitest | Vitest plugin that runs GTK tests in isolated headless displays. |
| @gtkx/storybook | Native Adwaita explorer for Storybook stories of GTKX components. |
Bindings and internals
| Package | Description |
|---|---|
| @gtkx/codegen | Generate TypeScript and JSX bindings for GTK and GObject libraries. |
| @gtkx/runtime | Runtime for generated GTK and GObject Introspection bindings in GTKX. |