@lakex-react/core
v0.2.1
Published
React wrapper for the Lakex (YuQue) document editor.
Maintainers
Readme
@lakex-react/core
React wrapper for the Lakex (YuQue) document editor. The package includes the editor runtime, shared card APIs and default configuration.
npm install @lakex-react/core react@^18 react-dom@^18import { LakexEditor } from '@lakex-react/core';
import '@lakex-react/core/style.css';
export default function App() {
return <LakexEditor language="zh-cn" />;
}Use LakexViewer when the document only needs to be rendered. It uses the
native read-only viewer and does not mount editing toolbars, block menus or
editor extensions.
import { LakexViewer } from '@lakex-react/core';
<LakexViewer
language="zh-cn"
content={{ type: 'text/lake', text: '<p>只读文档</p>' }}
/>Optional cards are published separately as @lakex-react/ai,
@lakex-react/drawing-bord, and @lakex-react/text-to-diagram. The
drawing-board package includes its own canvas AI assistant and schema helpers.
