✨ A modern, customizable terminal UI toolkit for input and confirmation prompts, built with Bubbletea
Terminal UI prompts with customizable placeholder styling, powered by @Bubbletea
mtui provides beautiful CLI prompts with keyboard interaction, placeholder support, and stylable input fields — perfect for Git hooks, scripts, or standalone tools.
- 📥 Single-line Input with placeholder and Tab-to-autofill
- ✅ Yes/No Confirmation with arrow or Tab navigation
- 🎨 Style Customization for placeholder and input text
- ⚙️ Keyboard shortcuts (
Enter,Esc,Tab,Ctrl+J) - 🍵 Built with Bubbletea, Bubbles, and Lipgloss
git clone https://github.com/marslo/mtui.git
cd mtui
./build.sh./mtui input --placeholder="branch-name"./mtui input \
--placeholder="feat: breaking change" \
--placeholder-style="italic,faint,foreground=245" \
--input-style="bold"- Press
Tabto use placeholder as value - Press
EnterorCtrl+Jto confirm - Press
Escto cancel
./mtui confirm --message="Do you want to deploy?"- Navigate with
Up/DownorTab - Confirm with
Enter - Cancel with
Esc
| FLAG | DESCRIPTION |
|---|---|
--placeholder |
Text shown as placeholder when input is empty |
--placeholder-style |
Comma-separated style keywords (see below) |
--input-style |
Comma-separated style for input text |
Supported style values: bold, italic, faint, underline, strikethrough, foreground=<color>
| FLAG | DESCRIPTION |
|---|---|
--message |
Prompt message for confirmation |
- Built with ❤️ using Charm's Bubbletea ecosystem