Skip to content

Commit 177e0d9

Browse files
committed
update README
1 parent c5c68a3 commit 177e0d9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,24 @@ Will be rendered as
173173
<p>This is My Cool App</p>
174174
```
175175

176+
You can override the existing frontmatter values by passing a props value to the component.
177+
178+
```html
179+
<template>
180+
<HelloWorld name="My Awesome App" />
181+
</template>
182+
183+
<script>
184+
import HelloWorld from './README.md'
185+
186+
export default {
187+
components: {
188+
HelloWorld,
189+
},
190+
}
191+
</script>
192+
```
193+
176194
It will also be passed to the wrapper component's props if you have set `wrapperComponent` option.
177195

178196
## Document head and meta

0 commit comments

Comments
 (0)