Pular para o conteúdo principal
Version: 2.4.3

📦 tema-live-codeblock

This theme provides a @theme/CodeBlock component that is powered by react-live. You can read more on interactive code editor documentation.

npm install --save @docusaurus/theme-live-codeblock

Configuration

docusaurus.config.js
módulo xports = {
plugins: ['@docusaurus/theme-live-codeblock'],
themeConfig: {
liveCodeBlock: {
/**
* A posição do live playground, acima ou abaixo do editor
* Valores possíveis: "top" ├"bottom"
*/
playgroundPosition: 'bottom',
},
},
};