Live code editor for UI docs (#2351)

* Docausaurus code live editor test

* Docusaurus sandpack test

* Fix setup

* Delete files

* Fixes

* Complete work

* Fix config

* Fix config

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
Charles Bochet
2023-11-03 23:09:20 +01:00
committed by GitHub
parent 1ed4965a95
commit e70ef58f97
18 changed files with 4311 additions and 1670 deletions
@@ -0,0 +1,9 @@
{
"label": "Display",
"position": 0,
"collapsible": true,
"collapsed": true,
"customProps": {
"icon": "TbForms"
}
}
@@ -0,0 +1,16 @@
---
title: Checkmark
sidebar_position: 1
---
import { SandpackEditor} from '@site/src/ui/SandpackEditor'
<SandpackEditor
componentPath='@/ui/Checkmark/components/Checkmark'
componentCode={`import { Checkmark } from "@/ui/Checkmark/components/Checkmark";
export const MyComponent = () => {
return <Checkmark />;
}
`}
/>