import { useState } from "react";
import { Button, Flex } from "@radix-ui/themes";
import MarkdownEditor from "@uiw/react-markdown-editor";
export default function Index() {
const [content, setContent] = useState("");
return (
<Flex direction="column" gap="2">
<Button>Let's go</Button>
<MarkdownEditor
enableScroll={false}
height="40vh"
onChange={(value, _viewUpdate) => {
setContent(value);
}}
value={content}
visible={true}
/>
</Flex>
);
}
目前不能折行。