mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
User reported in discord. Radix components like accordion does not open first item by default when use with content block. The reason was in our default detection. We used indexes within ancestor and when put item inside of content block template it gets 0 but not rendered. Here improved the logic to reset index when render inside of block template. <img width="837" alt="Screenshot 2025-03-01 at 21 14 09" src="https://github.com/user-attachments/assets/788df39a-b7c5-466b-a80e-09cc40de9e3f" />
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio project or some components in your custom codebase or just render a complete Remix Document. It is currently under development, but feel free to play with the the current landing site