Custom Components
Import from Github

Import components From Github

  1. If your framework is Angular install the Angular Elements using npm install @angular/elements --save in your codebase.
  2. Create locofy.config.json at the root of your codebase. You can setup what to import in the configuration file.
  3. Connect your Github account or using your github token.
  4. Select your Github responsitory
  5. Select your Github branch.
  6. Press the confirm button and all the components configured in locofy.config.json will be pulled into the Locofy Plugin.
  7. If you want to resync the component library, update the locofy.config.json in the repository if required and press Sync on the component mapping screen.

Note: Learn how to structure your locofy.config.json file here.