primitives/@mihcm/ui·v0.21.0·stable
RichTextEditor
Lexical-powered rich text editor with 4 progressive toolbar variants. Web only.
Live preview
Adjust the controls on the right; the preview and code update in real time.
Start typing...
example.tsxtsx
import { RichTextEditor } from '@mihcm/ui/RichTextEditor';
export function Example() {
return (
<RichTextEditor
variant="default"
placeholder="Start typing..."
minHeight="150px"
></RichTextEditor>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add RichTextEditorCopies the source into
components/ds/RichTextEditor.tsx. You own the file. Use --out to override the directory or --force to overwrite.