https://github.com/vuejs-ai/vue-tui Инструмент для построения TUI в синтаксисе vue. Поставляется в виде шаблона @vue-tui/vite ИЛИ через @vue-tui/runtime. import { shallowRef } from "vue"; import { Box, Text, useInput } from "@vue-tui/runtime";
const count = shallowRef(0);
useInput((input) => { // "+" is Shift+"=" on most keyboards, so accept the bare "=" too. if (input === "+" || input === "=") count.value++; if (input === "-") count.value--; });
Count: {{ count }} (+/= and - to change)