Contibuting Custom Nodes (like nodeTypes in reactflow) #154
PapaTemporal
started this conversation in
General
Replies: 1 comment 1 reply
-
I think @bryanmylee might be able to help you out with this. He has built a wonderful library which allows sending props to custom Svelte components. Which itself is based on svelte-render. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a trick to add a prop to a
<Svelvet />
component?I have added the
export let customNodes: customNodesType;
to Containers/Svelvet/index.svelte but when I package, it doesn't seem to add it to the typescript definition. This results in an<Svelvet> was created with unknown prop 'customNodes'
message in the browser when I create an element with the new customNodes prop.What's odd to me is that the index.d.ts says:
export default Svelvet;
import Svelvet from "svelvet";
which imports Svelvet from the npm svelvet instead of its own Containers/Svelvet. Maybe this could be the problem?
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions