# tosijs-ui v1.15.1 Simple, robust web-components for use with tosijs or anything else. - Docs: https://ui.tosijs.net - Source: https://github.com/tonioloewald/tosijs-ui - npm: https://www.npmjs.com/package/tosijs-ui ## Documentation Full documentation, with live code examples, is at the links below. Live examples run inline on the shared page by default (not sandboxed): each has its own `preview` element, but they share one tosijs module, so `tosi()` state singletons are shared across every example on a page. This is deliberate (it shows tosi isolation and lets you drive demos via the global singleton). Namespace example state with unique top-level keys so examples don't clobber each other; the `iframe` attribute isolates DOM/CSS, not state. Running this project locally (`bun start`), the dev server injects a localhost-gated dev channel, so an agent can DRIVE the live page with the `hj` CLI — `hj navigate`, `hj eval`, `hj tree` — instead of inferring behaviour from source. Injected at serve time only, never in the built output. Note that no requestAnimationFrame runs under `hj eval`, and tosijs renders are rAF-driven, so use it to inspect STATE; a painted-output check needs a real test lane. ## Pages - https://ui.tosijs.net/babylon-3d/ — 3d A [babylonjs](https://www.babylonjs.com/) wrapper. - https://ui.tosijs.net/ab-test/ — ab-test `` provides a simple method for implementing A|B-testing. - https://ui.tosijs.net/adopting-the-doc-system/ — Adopting the doc system A first hour with tosijs-ui/site: the minimum that works, how to tell it is actually working, and the four things that fail silently while the site still serves 200s. - https://ui.tosijs.net/appendices/ — Appendices Reference material on the library's own systems — the doc browser, the - https://ui.tosijs.net/carousel/ — carousel This is a minimalist carousel component that supports the usual stuff. - https://ui.tosijs.net/code-editor/ — code A [CodeMirror 6](https://codemirror.net/) wrapper. - https://ui.tosijs.net/color-input/ — color input field This is a color input field that supports opacity - https://ui.tosijs.net/components/ — Components The goal of this library is not to replace HTML elements that already work very well, such as ``, `