You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble figuring out how to create a custom component for the FormBuilder. All the examples I've seen online use JavaScript, but my project uses TypeScript.
I think this issue must be addressed to the formio team. this repo concern @tsed/react-formio which is a fork of the @formio/react package with some additional features (like tailwind themes).
But because I already had this issue, I help you ;)
The main point when you want to enable you custom component in the form builder, is to check if your component name have the same case between the object set to .setComponent and the name given the form builder.
Turns out it was that small, huh? Thank you for your help! I'll see what I can figure out to make the component into Typescript rather than Javascript, and how to get the control to render properly on the FormBuilder. It currently shows this:
Hi,
I'm having trouble figuring out how to create a custom component for the FormBuilder. All the examples I've seen online use JavaScript, but my project uses TypeScript.
I have a codesandbox link that hopefully illustrates the issue: https://codesandbox.io/p/sandbox/sleepy-worker-65cylh
The
firstname
code comes from this example: https://codesandbox.io/p/sandbox/distracted-butterfly-rzy27wAny help you can offer would be greatly appreciated!
The text was updated successfully, but these errors were encountered: