Help forum

Is there no way to import components?

  • alice_alexandra

    1 year 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
    ✅1
  • Erik Beuschau

    1 year 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

    1 year ago

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

    1 year 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

    1 year 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.
  • alice_alexandra

    1 year ago

    Hey, @Erik Beuschau—just repinging here on the last question. Can packages be published privately?

    Thanks so much.
  • Erik Beuschau

    1 year ago

    No. That’s not an option at the moment. It is something we plan to support though.
    I don’t know what back-end you use, but perhaps you could utilize our API services for managing it in an easy/reusable way?
    In case you’re not aware, please note that toddle doesn’t support API secrets atm.
    👍1
  • alice_alexandra

    1 year ago

    No, that makes total sense. I did notice the yellow text here, though, which confused me, as I can't figure out how that works.
  • 1357251597423607929-CleanShot_2025-04-03_at_09.12.46.png
  • Erik Beuschau

    1 year ago

    Within your own organization you can install unpublished packages (from the same organization) and those packages won’t be listed for anyone else. They’re still public though, but obviously difficult for others to find/guess the name of.
    This feature was mostly built to allow package authors to test their package in their own projects before publishing it to everyone.
  • alice_alexandra

    1 year ago

    Ah, okay—I think this functionality you're describing might be broken. I cannot search and find my package (having never launched it).
  • alice_alexandra

    1 year ago

  • Tod

    1 year ago

    Great energy @alice_alexandra! Your continuous contribution to the toddle Community just made you advance to Community Level 3!
  • Max

    1 year ago

    This is still behind a feature flag @Erik Beuschau
  • Erik Beuschau

    1 year ago

    Lol I completely forgot. Thank you 😅 I’ll see if we can make this available for everyone 👍
  • alice_alexandra

    1 year ago

    Ah, amazing! Thank you!
  • Erik Beuschau

    1 year ago

    🫶1
    👍1
    🙌1