1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-26 00:35:02 +03:00

Update docs

This commit is contained in:
Brent Jackson 2019-04-13 12:10:58 -04:00
parent b027338cb4
commit 6e8a5c546b

View File

@ -140,3 +140,23 @@ import { FullScreenCode } from 'mdx-deck/layouts'
</FullScreenCode>
````
## 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 => (
<>
<h2>Second Slide</h2>
<Embed src={deck} slide={2} />
</>
)
```