Skip to content

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 ​

PackageDescription
@gtkx/reactReact renderer for native GTK and Adwaita apps.
@gtkx/cliDevelopment and packaging commands for GTK apps built with GTKX.
@gtkx/configTyped configuration for GTK apps built with GTKX.

Libraries ​

PackageDescription
@gtkx/componentsGTK collection views, selection controls, and toasts for React.
@gtkx/cssCSS-in-JS styling for GTK widgets in GTKX.
@gtkx/navigationReact Navigation navigators for GTK and Adwaita apps.
@gtkx/formsReact Hook Form controls for GTK and Adwaita apps.
@gtkx/animatedReact Spring animations for GTK widgets in GTKX.
@gtkx/i18nGettext localization for GTK apps through react-i18next.
@gtkx/cairoCairo drawing for GTK apps built with GTKX.
@gtkx/glOpenGL 4.6 core bindings for GTK GL areas in GTKX.

Testing and tools ​

PackageDescription
@gtkx/testingTest GTKX apps against real GTK widgets.
@gtkx/vitestVitest plugin that runs GTK tests in isolated headless displays.
@gtkx/storybookNative Adwaita explorer for Storybook stories of GTKX components.

Bindings and internals ​

PackageDescription
@gtkx/codegenGenerate TypeScript and JSX bindings for GTK and GObject libraries.
@gtkx/runtimeRuntime for generated GTK and GObject Introspection bindings in GTKX.