Hi, I would like to know how to configure and use the builder blocks in SvelteKit. In React, we typically configure it like this:
<BuilderBlocks
parentElementId={props.builderBlock.id}
dataPath={component.options.tabs.${activeTab}.content
}
blocks={props.tabs[activeTab].content}
/>
This setup expects the parent ID, the path to the child component, and the blocks. How can I achieve a similar configuration in SvelteKit?"
3 Likes
Ankit
February 27, 2024, 9:32am
2
Hi,
I have the same query related to the builder blocks.
I followed this blog on the forum but as it didnāt have any resolution on it
Builder content link
Builder public api key
ac4c1566528641b78dbc8009f0d9ad95
What are you trying to accomplish
I`m trying to follow the example for svelte located here which should allow me to build reusable components with content coming from builder, but when I tried the example code gave me a weird experience in the builder editor where I cant add items using the āadd blockā button.
What is the issue you are having with the Typescript types for all the sdks? I tried React and now Svelteā¦
Please help me with this query asap.
Regards,
Ankit
2 Likes
Hello @Ankit ,
We have released a fix for the reported issue with blocks in our new version of the Svelte SDK, @builder.io /sdk-svelte@1.0.8 . Could you please verify if the new update fixes the issue for you?