mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #469] [MERGED] feat(solid): allow passing custom CliRenderer to render() #556
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#556
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/469
Author: @remorses
Created: 1/4/2026
Status: ✅ Merged
Merged: 1/4/2026
Merged by: @kommander
Base:
main← Head:feature/solid-custom-renderer📝 Commits (2)
c4de8f8feat(solid): allow passing custom CliRenderer to render()d9a40a7fix: hook destroy event for custom renderer to auto-dispose📊 Changes
1 file changed (+24 additions, -9 deletions)
View changed files
📝
packages/solid/index.ts(+24 -9)📄 Description
Adds support for passing a custom
CliRendererinstance to therender()function as the second parameter, while maintaining backwards compatibility with the existing config-based API.This enables use cases like rendering OpenTUI in a web browser via WebSocket, where you need a custom renderer implementation instead of the default CLI renderer.
render()now accepts eitherCliRendererConfig(existing) orCliRendererinstance (new)render()now returns{ dispose }for cleanup when using custom rendererThis PR was written by Opus 4.5 under the strict supervision of @remorses
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.