Ir para o conteúdo principal
Version: 2.0.0-beta.4

📦 tema-live-codeblock

Este tema fornece um componente @theme/CodeBlock que é alimentado por react-live. Você pode ler mais na documentação do editor de código interativo.

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

Configuração#

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',    },  },};