plasmicapp / plasmic

Visual builder for React. Build apps, websites, and content. Integrate with your codebase.
https://www.plasmic.app
MIT License
4.72k stars 382 forks source link

[Svelte] Add support to override component content with “render” #34

Open arenzel opened 2 years ago

arenzel commented 2 years ago

Hi! 👋

I have a grid with multiple cards that I need to customize (provide data like name, description, image, etc.).

Capture d’écran 2022-03-21 à 14 50 17

With the React API, I could customize it that way:

{
  render: (props, Component) => <Component {...props} />;
}

Of course, that doesn’t work in Svelte.

That would be great to make this API also available for Svelte! 🙏