mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
Boolean flags may have a lot of combinations which can lead to unexpected bugs. Better approach is to categorize nodes with specific behaviours. Here I added 5 types - container - can accept other components with dnd - control - usually form controls like inputs, without children - embed - images, videos or other embeddable components, without children - rich-text - can be edited on double click - rich-text-child - formatted text fragment, not listed in components list
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio site 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