directory
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Dec 3, 2026
License: MIT
Opens a new window with license information.
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_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
ΒΆ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.