Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 818 Bytes

theme-live-codeblock.md

File metadata and controls

29 lines (25 loc) · 818 Bytes
sidebar_position id title slug
3
theme-live-codeblock
📦 theme-live-codeblock
/api/themes/@docusaurus/theme-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 {#configuration}

module.exports = {
  plugins: ['@docusaurus/theme-live-codeblock'],
  themeConfig: {
    liveCodeBlock: {
      /**
       * The position of the live playground, above or under the editor
       * Possible values: "top" | "bottom"
       */
      playgroundPosition: 'bottom',
    },
  },
};