Custom Component Library - KaTeX

I finally decided to attempt making a custom component library in Retool, and wow, I am impressed how easy it was. I am happy to share the sources in hopes it sheds some light for others, just how painless it is.

As an experiment, I created

It is a very thin wrapper around

retool-ccl works flawlessly and the dev mode is fantastic.

Great job Retool!

4 Likes

Replying to myself as a note of what I have found out.

I thought that maybe the new Custom Components rendered as "native" components, instead of iframes like the old version.

I guess if I really thought about it, we are mounting a whole "react app" in the component, even though it is one component.

My idea to use the KaTeX component in a list component now seems silly.

I don't want a dozen or more iframes showing just a singular KaTeX output? That is not a good solution :frowning:

1 Like

Thanks for sharing, @khill-fbmc! I'm a big fan of the new custom component libraries, as well. :slightly_smiling_face:

The components do still render within an iframe, though, which might limit their use case a bit. Let me know if you have any questions as you play around with it!

1 Like

Relevant:
I don't know how actively github issues are monitored, but I opened one. (It's a small issue)

1 Like