Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Last active February 26, 2020 17:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
MDX Deck snippets
import {
Image
} from 'mdx-deck'
---
<Image
src='https://source.unsplash.com/random/768x2048?cats'
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: 'black',
backgroundColor: 'black',
}}>
</Image>
import i from './image.jpg';
<img src={i} />
// Video ⬇️
import v from './video.mp4';
<video controls>
<source src={v} />
</video>
// Audio ⬇️
import a from './audio.mp3';
<audio controls>
<source src={a} />
</audio>
// Object ⬇️
import o from './object.pdf';
<object data={o} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment