opentui icon indicating copy to clipboard operation
opentui copied to clipboard

Lack of documentation / onChange prop for custom Renderable

Open Quackzoer opened this issue 11 months ago • 5 comments

OpenTUI is amazing, I already like it more than React/INK even tho I still don't know how to use it. The biggest problem tho is poor documentation. Things are scattered around, difficult to find etc. I'm considering making a website because I really like the package and I would like to contribute somehow to it so nobody else spends over an hour trying to figure out how to add onChange prop to custom Renderable (still without any luck).

I believe fumadocs would be sufficient, allows for lots of customization, supports mdx, is still in development.

I'll gladly accept anyone who would be willing to help with it, to be fair I'm not best with design.

Off topic: I created cutom Checkbox Renderable, I based it on Select Renderable but for some reason Select accepts onChange prop and my Checkbox doesn't. I'm using React

Quackzoer avatar Dec 27 '25 11:12 Quackzoer

I can try creating one with holocron.so based on the existing documentation in the codebase

Here is an example of how it would look like: https://docs.holocron.so/README

remorses avatar Dec 27 '25 11:12 remorses

I can try creating one with holocron.so based on the existing documentation in the codebase

Here is an example of how it would look like: https://docs.holocron.so/README

Why holocron and not Fumadocs? Fumadocs seems way more customizable, lacks on community tho but I watched video about it and for someone who works in React seems very nice and easy

Quackzoer avatar Dec 27 '25 11:12 Quackzoer

@msmps would know best how to extend react with a custom Renderable like that.

kommander avatar Dec 27 '25 18:12 kommander

I found out that onChange prop used to be added by OpenTUI in host-config.ts via hard coded values. Can't find where it is now. I simply created React wrapper around my component that adds onChange, can't think of better solution

Quackzoer avatar Jan 02 '26 21:01 Quackzoer

There now is a proper documentation setup which also is deployed with the website. It's WIP. Feel free to add to the documentation if something is missing.

kommander avatar Jan 26 '26 17:01 kommander