mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
If this looks good, I will not merge it right away, but open a PR in `webstudio-saas` ## Description - #993 1. Added a new type of Prop `{type: "page"}`, similar to `{type: "asset"}` 2. Added `pagesStore` to `ReactSdkContext` (will need to make changes to `webstudio-saas` as well to support this) 3. Added a new control type `{control: "url"}` and corresponding `<UrlControl>` 4. Updated Link components: - set `{control: "url"}` for the `href` prop - made them support `{type: "page"}` as `href` - simplified / cleaned up ## Steps for reproduction 1. Add a link 2. Set a page as `href` in props panel 3. Try clicking on the link in preview mode
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