examples/

directory
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT

README ΒΆ

πŸš€ Kite Examples

This directory contains a collection of examples demonstrating various features and components of the Kite terminal UI framework.

πŸƒ Running Examples

To run an example, navigate to its directory and use go run:

cd examples/button
go run main.go

πŸ“‹ Available Examples

Core Components
  • button: Basic and styled buttons with click handlers.
  • input: Single-line text input fields.
  • textarea: Multi-line text areas with scrolling and selection.
  • checkbox_radio: Interactive checkboxes and radio buttons.
  • select: Dropdown-style selection menus.
  • list: Vertical list layouts.
  • table: Data tables with borders and alignment.
Layouts
  • flex: Demonstrates the Flexbox layout engine (rows, columns, alignment).
  • grid: Demonstrates the CSS-style Grid layout engine.
Advanced Features
  • animation: Property interpolation and easing.
  • grid_animation: Animated grid layouts.
  • overlay: Using the Top Layer Overlay API for tooltips and floating elements.
  • dialog: Modal dialogs with focus management.
  • spatial_navigation: Directional arrow-key spatial focus navigation with a virtual arrow key pad overlay.
  • clipboard: Integration with the system clipboard.
  • app1: A comprehensive application example combining multiple components.
βš›οΈ Kitex (Reactive) & Extras
  • kitex_demo: demonstrates the VDOM reconciler, functional components, and hooks (UseState).
  • kitex_ref_demo: demonstrates using UseRef and CreateRef within functional components.
  • kitex_hooks: demonstrates terminal-specific hooks (UseFocus and UseKeyboard).
  • kitex_autocomplete_demo: demonstrates an input-driven autocomplete menu opened with Ctrl+Space.
  • form_demo: demonstrates form elements (Inputs, Checkbox, RadioGroup, Select) and VDOM submission handler via kitex.Form.
  • trail_demo: demonstrates Ink-like inline CLI apps with extras/trail, featuring <Static> scrollback logging, dynamic frame heights, animated spinners, and keyboard controls.

For more information on how to build your own applications, check out the Quickstart Guide.

Directories ΒΆ

Path Synopsis
Package demoutil provides logging setup, exit-key bindings and shortcut bars for Kite examples.
Package demoutil provides logging setup, exit-key bindings and shortcut bars for Kite examples.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL