diff --git a/docs/components.md b/docs/components.md index 4536dac..c9c5935 100644 --- a/docs/components.md +++ b/docs/components.md @@ -140,3 +140,23 @@ import { FullScreenCode } from 'mdx-deck/layouts' ```` + +## Embed + +**Experimental** + +The `Embed` component is intended for use **outside** of an MDX Deck to render a preview of a particular slide. +This can be used to embed slide previews in other places, like a blog post write-up of a presentation. + +```jsx +import React from 'react' +import { Embed } from '@mdx-deck/components' +import deck from './my-deck.mdx' + +export default props => ( + <> +