JSPM

@opentui/solid

0.1.19
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 175959
  • Score
    100M100P100Q164698F
  • License MIT

SolidJS renderer for OpenTUI

Package Exports

  • @opentui/solid
  • @opentui/solid/jsx-dev-runtime
  • @opentui/solid/jsx-runtime
  • @opentui/solid/preload

Readme

@opentui/solid

Solid.js support for OpenTUI.

Installation

bun install solid-js @opentui/solid

Usage

  1. Add jsx config to tsconfig.json:
{
  "compilerOptions": {
    "jsx": "preserve",
    "jsxImportSource": "@opentui/solid"
  }
}
  1. Add preload script to bunfig.toml:
preload = ["@opentui/solid/preload"]
  1. Add render function to index.tsx:
import { render } from "@opentui/solid"

render(() => <text>Hello, World!</text>)
  1. Run with bun index.tsx.