npm.io
0.1.1 • Published yesterday

@tgxjs/kit

Licence
MIT
Version
0.1.1
Deps
2
Size
81 kB
Vulns
0
Weekly
0

@tgxjs/kit

UI kit for tgx — copy-in components for Telegram bots built with @tgxjs/core.

npm i @tgxjs/kit

Pure helpers with no hidden state. There is no CSS in Telegram, so "styling" is composition plus unicode and emoji.

  • textbar, stars, badge, breadcrumb, kv, bullets, wizardProgress
  • keyboardsgrid, radio, checklist, tabs, stepper, slider, paginate, carousel, confirm, langSwitcher
  • calendarcalendar, calStep, timePicker
  • card — a self-rendering panel with file-upload slots
import { ui } from "@tgxjs/kit";

buttons: [
  ...ui.radio(plans, active, { do: "plan" }),        // ◉ / ◯ single-select
  ...ui.checklist(items, selected, { do: "tog" }),   // ✅ / ☐ multi-select
  ...ui.calendar(year, month, { do: "cal" }),        // full month grid
];

Full reference: AGENTS.md. MIT licensed.

Keywords