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:
parent
b027338cb4
commit
6e8a5c546b
@ -140,3 +140,23 @@ import { FullScreenCode } from 'mdx-deck/layouts'
|
|||||||
|
|
||||||
</FullScreenCode>
|
</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} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user