website/docs/controls/codeeditor/index.md
import TabItem from '@theme/TabItem'; import Tabs from '@theme/Tabs'; import {ClassMembers, ClassSummary, CodeExample, Image} from '@site/src/components/crocodocs';
<ClassSummary name={frontMatter.class_name} image={frontMatter.example_images + '/image_for_docs.png'} imageCaption="Basic CodeEditor" imageWidth="60%"/>
Add flet-code-editor to your project dependencies:
requirements.txt or pyproject.toml.
</TabItem>
<CodeExample path={frontMatter.examples + '/example_1/main.py'} language="python" />
<Image src={frontMatter.example_images + '/example_1.png'} alt="code-editor-example-1" width="60%" />
<CodeExample path={frontMatter.examples + '/example_2/main.py'} language="python" />
<Image src={frontMatter.example_images + '/example_2.png'} alt="code-editor-example-2" width="65%" />
<CodeExample path={frontMatter.examples + '/example_3/main.py'} language="python" />
<Image src={frontMatter.example_images + '/example_3.png'} alt="code-editor-example-3" width="65%" />
<ClassMembers name={frontMatter.class_name} />