diff options
Diffstat (limited to 'docs/reference/builtin-components.md')
-rw-r--r-- | docs/reference/builtin-components.md | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/docs/reference/builtin-components.md b/docs/reference/builtin-components.md deleted file mode 100644 index 54f22c2ea..000000000 --- a/docs/reference/builtin-components.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: ~/layouts/Main.astro -title: Built-In Components ---- - -Astro includes several builtin components for you to use in your projects. All builtin components are available via `import {} from 'astro/components';`. - -## `<Markdown />` - -```astro ---- -import { Markdown } from 'astro/components'; ---- -<Markdown> - # Markdown syntax is now supported! **Yay!** -</Markdown> -``` - -See our [Markdown Guide](/guides/markdown-content) for more info. - -<!-- TODO: We should move some of the specific component info here. --> - -## `<Prism />` - -```astro ---- -import { Prism } from 'astro/components'; ---- -<Prism code={`const foo = 'bar';`} /> -``` - -This component provides syntax highlighting for code blocks. Since this never changes in the client it makes sense to use an Astro component (it's equally reasonable to use a framework component for this kind of thing; Astro is server-only by default for all frameworks!). |