@vui-rs/vue 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @vui-rs/vue
2
+
3
+ A **Vue 3 custom renderer** for [vui-rs](https://github.com/open-ai-sdk/vui-rs): build reactive terminal UIs with Vue's component model, reactivity, and lifecycle — rendered through the native cell buffer in [`@vui-rs/core`](https://www.npmjs.com/package/@vui-rs/core).
4
+
5
+ > **Runtime:** Bun only (depends on `@vui-rs/core`'s FFI engine).
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ bun add @vui-rs/vue
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ import { createApp, h, ref } from "@vui-rs/vue";
17
+
18
+ const App = {
19
+ setup() {
20
+ const n = ref(0);
21
+ return () => h("box", { border: "rounded", padding: 1 }, h("text", {}, `count: ${n.value}`));
22
+ },
23
+ };
24
+
25
+ createApp(App).mount();
26
+ ```
27
+
28
+ Authoring `.vue` SFCs? Add [`@vui-rs/vite-plugin`](https://www.npmjs.com/package/@vui-rs/vite-plugin). Higher-level widgets (dialogs, command palette, toasts, …) live in [`@vui-rs/ui`](https://www.npmjs.com/package/@vui-rs/ui).
29
+
30
+ ## Features
31
+
32
+ Box/text/span elements · taffy flexbox layout · truecolor + text attributes · borders + titles · `<input>`/`<textarea>` (native edit, undo/redo, selection) · `<canvas>` · `<scroll-box>` (scroll + cull) · overlays/modals (z-index + dim backdrop) · `<markdown>`/`<code>`/`<diff>` · animation/timeline engine · theming (light/dark, runtime switch) · keyboard + mouse + focus · text selection + OSC 52 copy · inline images.
33
+
34
+ ## License
35
+
36
+ MIT