Skip to content

Commit

Permalink
Update 2024-03-01_vite-press-plugin.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 22, 2024
1 parent e077ff6 commit 2987b09
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/_posts/2024-03-01_vite-press-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,23 @@ Or **ALL** the website metadata content from:
This feature makes it possible to support use-cases like CreatorKit's
[Generating Newsletters](https://servicestack.net/creatorkit/portal-mailruns#generating-newsletters) feature which generates
a Monthly Newsletter Email with all new content added within a specified period.

## Components in Markdown Pages

The [Simple, Modern JavaScript](/posts/javascript) blog post is a good example showing how you can use Global Components
as well as import and reference components in Markdown pages:

```tsx
<script setup>
import Hello from "./components/Hello.vue";
import Counter from "./components/Counter.vue";
import Plugin from "./components/Plugin.vue";
import HelloApi from "./components/HelloApi.vue";
import VueComponentGallery from "./components/VueComponentGallery.vue";
import VueComponentLibrary from "./components/VueComponentLibrary.vue";
</script>

<Iconify icon="vscode-icons:file-type-js-official" />
<hello name="Vue 3"></hello>
<counter></counter>
```

0 comments on commit 2987b09

Please sign in to comment.