Skip to content
Kite

Examples

From the repository root, run go run ./examples/<name> in an interactive terminal. Each demo is a standalone program whose App entry point is also compiled to WebAssembly directly from examples/<name>/main.go so you can inspect and interact with it in your browser.

Category Examples Focus
Controls & Overlays 8 demos (button, input, textarea, checkbox_radio, select, dialog, overlay, overlay_tweaks) Form inputs, selections, modal dialogs, and anchored overlays
Layout, Focus & Animation 9 demos (flex, grid, table, list, responsive, opacity, spatial_navigation, animation, grid_animation) Flex, CSS Grid, tables, lists, media queries, alpha blending, focus navigation, and tweens
Kitex 7 demos (kitex_demo, kitex_hooks, kitex_context_demo, kitex_ref_demo, kitex_effects_demo, kitex_autocomplete_demo, reducer) Functional components, hooks, context providers, refs, effects, overlays, and reducers
Ecosystem & Apps 6 demos (form_demo, kites_demo, wind_demo, flight_demo, stage, app1) extras/form, extras/kites, extras/wind, extras/flight, extras/stage, and full-layout showcases

Two programs under examples/ require a host terminal or OS desktop environment and are run natively rather than in the browser:

  • go run ./examples/clipboard — reads and writes multi-MIME clipboard contents via the OS-native extras/clipboard provider.
  • go run ./examples/trail_demo — streams completed task lines above a live inline region on a real TTY scrollback buffer.
Terminal window
KITE_LOG_FILE=/tmp/kite.log KITE_LOG_LEVEL=debug go run ./examples/stage

Read the log in another terminal while interacting with the demo. examples/demoutil shares startup and exit behavior across examples: SetupLogging initializes logging from the environment and returns cleanup; ExitContext binds configured keys to context cancellation. ExitBar and KitexExitBar display shortcut hints but do not bind the keys themselves. For geometry and frame timing, use DevTools.