gitstack

grindlemire/go-tui code browser

411 B markdown 17 lines 2026-04-18 · 7dc88fd raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Components

Demonstrates the two kinds of components: pure templ functions for stateless reusable pieces, and struct components that carry state, handle input, and compose together with the `{children...}` slot.

## Screenshot

![Components](../../docs/images/guides/07.png)

## Run

```bash
go run .
```

## Guide

For a detailed walkthrough, see the [Components guide](https://go-tui.dev/guide/components).