Components are highly re-usable JSX templates that Deco can add to your project automatically. Some components have npm dependencies; Deco will automatically download these dependencies and
import them into your code. Components inserted this way may also contain tweakable properties which are automatically added to the property inspector.
Currently, the list of available components is curated, and comes from this github repository. We plan to improve the way components are created and shared in the near future so that it's simpler and more scalable.
There are two ways to insert a component:
The easiest way to remove a recently-added component is with undo ⌘+z. You will need to manually remove npm dependencies from your package.json. If undoing isn't possible, there are three places to check for related code you need to delete:
importstatements that were added when the component was inserted
We're currently figuring out the best way to let you create your own custom and/or private Deco components. In the meantime, you can add components to Deco's curated list by making a pull request to the package.json file here: https://github.com/decosoftware/deco-components