Package Exports
- @opentui/solid
- @opentui/solid/jsx-dev-runtime
- @opentui/solid/jsx-runtime
- @opentui/solid/preload
- @opentui/solid/reconciler
Readme
@opentui/solid
Solid.js support for OpenTUI.
Installation
bun install solid-js @opentui/solidUsage
- Add jsx config to tsconfig.json:
{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "@opentui/solid"
}
}- Add preload script to bunfig.toml:
preload = ["@opentui/solid/preload"]- Add render function to index.tsx:
import { render } from "@opentui/solid";
render(() => <text>Hello, World!</text>);- Run with
bun --conditions=browser index.tsx.