Evidence Labs
Evidence Labs contains experiemental components and features for Evidence projects.
Using Evidence Labs Components
Install the package from npm:
npm install --save @evidence-dev/labs
Include it in your
evidence.plugins.yaml
file:components: @evidence-dev/core-components: {} @evidence-dev/labs: {}
Add the component to your page!
Ensure you restart your dev server after adding the plugin!
Component List
Maps
UI
- Grid
- Footnote
- Github Stars
- Slider - contributed by @kuatroka
Embeds
Data
Adding a New Component to Evidence Labs
Note: Do you need to do this, or should you be creating your own plugin? See README
- Fork and clone the repo:
https://github.com/evidence-dev/labs
- Add
YourComponent.svelte
to thesrc/lib
folder, making sure you add an evidenceInclude flag (see examples) - Test it by adding it to
pages/your-component/index.md
(you will need to import it, and the syntax is a bit annoying - see other components for examples) - Export it from
src/lib/index.js
so it can be imported by other projects when it is published - Open a PR to the main repo