import { Head } from 'mdx-deck'; export { default as theme } from './theme'; import { LiveCode } from 'mdx-deck-live-code';
{\` \`}
`}
size="large"
previewProps={{
style: { textAlign: 'left', padding: '0.5em', fontSize: '0.7em' },
}}
editorProps={{ style: { fontSize: '0.5em', background: '#001628' } }}
/>
---
mdx-deck theme:
{\`export default {
...theme,
liveCode: {
container: {
// container styles
},
editor: {
// editor styles
},
preview: {
// preview styles
},
error: {
// error styles
}
}
};\`}
`}
size="fullscreen"
previewProps={{
style: { textAlign: 'left', padding: '0.5em', fontSize: '0.7em' },
}}
editorProps={{ style: { fontSize: '0.5em' } }}
/>
---
While in the editor, use either one of the key combos
ESC
CTRL + M (Windows and Linux)
CTRL + SHIFT + M (Mac)
Hi, I'm a {componentType}!
) }`} editorProps={{ style: { fontSize: '0.5em', background: '#001628' } }} /> ---This is a {this.state.value} component!
this.setState({value: e.target.value}) } value={this.state.value} /> ); } }`} size="large" editorProps={{ style: { fontSize: '0.5em', background: '#001628' } }} /> ---{sayWhaaat} {toWhooo}
); render(GreetDaPeeps);`} providerProps={{ noInline: true }} editorProps={{ style: { fontSize: '0.5em', background: '#001628' } }} /> ---