![](https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg)
⚙️ graphics-svelte-components
Svelte components for making graphics pages.
Read the docs.
Developing
Add your component in a folder one level below src/lib
, for example:
src/
lib/
MyComponent/
index.svelte
To document your component, add a docs.svx
file in your component directory:
MyComponent/
docs.svx
index.svelte
Use Svelte in Markdown syntax to document your component's features in your docs.
IMPORTANT: You MUST add minimal frontmatter data to your docs, including a title, description and slug.
---
title: MyComponent
description: A component that does things.
slug: my-component
---
# MyComponent
etc.
Once you've completed documenting your component, run the build command to build the package and docs:
yarn release