DeCap Widgets

DeCap Widgets is a collection of widgets for the DeCap.

Adding to a page

Decap & custom widgets are added to a page by adding the following script tag to your page:

<script src="https://components.dynamicplatform.com/dpl-decap/0.0.1/decap-cms.js"></script>
<script src="https://components.dynamicplatform.com/dpl-decap/0.0.1/main.js"></script>

This is typically done in the /admin route, but can be added to an obfuscated route.

Creating a widget

Add a directory to the /src directory with the name of your widget.

Create the following files:

Edit ./src/index.js add import for the new index.js

Versions: