Skip to content

v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Mar 16:31
· 30 commits to main since this release

npm version

Documentation v3.0.0: https://raw.githack.com/uiwjs/react-code-preview-layout/edab1cf/index.html
Comparing Changes: v2.1.1...v3.0.0

npm i react-code-preview-layout@3.0.0
import CodeLayout from "react-code-preview-layout"

+ const Preview = CodeLayout.Preview;
+ const Code = CodeLayout.Code;
+ const Toolbar = CodeLayout.Toolbar;

<CodeLayout
-  title="示例"
-  code={<code>{code}</code>}
-  copyNodes={code}
 >
+  <Preview>
    <div>这里是示例展示</div>
+  </Preview>
+  <Toolbar>Code Example</Toolbar>
+  <Code>
+    {code}
+  </Code>
</CodeLayout>
  • 🌟 feat: refactor code. 36466f9
  • 💄 chore(deps): update dependency kkt to 7.4.0 f1c293b
  • 💄 chore(deps): update devDependencies. ad0179b