feat(guide): add an example of custom component

This commit is contained in:
Valeriy
2019-02-04 04:01:55 +03:00
committed by Stuart Taylor
parent 6a93b44aca
commit 5a8f9bff41
3 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
title: Example component
component: example/Component/index.js
---
## Example component
We can place inline component: <span id='example-component_span'></span>.
Or place block component: <div id='example-component_div'></div>

View File

@ -0,0 +1,14 @@
---
title: Components
---
## Components
We can use custom components for guide articles. Add
```yml
component: path/to/component
```
to an article frontmatter to use your component. Your component should be
located in `client/src/templates/Guide/components/path/to/component`.