Is there no way to import components?

  • alice_alexandra-1355122438962286662

    alice_alexandra

    4 days ago

    According to [this Toddle video](https://www.youtube.com/watch?v=eDR23yGc6kc), there should be a way to import components, which is definitely vital for maintaining multiple project.

    However, in the current Toddle interface, I can't find this functionality.
    1355122439067271188-CleanShot_2025-03-28_at_12.11.19.png
  • erikbeus-1355123379161665607

    Erik Beuschau

    4 days ago

    Hi @alice_alexandra
    We used to have this functionality, but I believe it was removed since it had a number of issues. Instead, we now recommend that you copy/paste components directly in the editor. That works really well - even for larger components.
    This workflow doesn't copy dependencies though (if a component references other components or formulas for instance), but we hope to address that soon 🀞
    πŸ™Œ1
  • alice_alexandra-1355151371573399732

    alice_alexandra

    4 days ago

    Thanks, @Erik Beuschau, but does this workflow keep components in sync to their source?
  • erikbeus-1355152015449260222

    Erik Beuschau

    4 days ago

    No. Neither did the original import workflow.
    While keeping them in sync is sometimes what you want, it's really unfortunate when it is not. In toddle we generally prefer copying things rather than extending/inheriting. If you do want to make something reusable, it should most often be done with a component. Or in your case, perhaps a package with an exported component?
    πŸ‘1
  • alice_alexandra-1355158096653193288

    alice_alexandra

    4 days ago

    @Erik Beuschau, A package with an exported component would definitely solve this, but can packages only be public? My use case is specific to my backend, and so I wouldn't want to publish that to everyone. Just wanted to check before I buy a subscription.

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.