Editor

The Editor component was built using the Lexical API and was developed to be used in rich text fields.

import React from "react";
import dynamic from "next/dynamic";

const Editor = dynamic(() => import("@nimbus-ds/editor"), { ssr: false });

const Example: React.FC = () => {
  return <Editor />;
};

export default Editor = dynamic(() => import("@nimbus-ds/editor"), { ssr;

Refer to the Lexical API documentation to understand how to implement the <Editor> component.

Instalá el componente via terminal.

npm install @nimbus-ds/editor

Additional props are passed to the <Editor> element. See div docs for a list of props accepted by the <Editor> element.