UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

2 lines (1 loc) 306 B
import{jsx as t}from"react/jsx-runtime";import{useLexicalComposerContext as e}from"@lexical/react/LexicalComposerContext";import{useCallback as o}from"react";const r=r=>{const[m]=e(),c=o((t=>{m.setRootElement(t)}),[m]);return t("div",{contentEditable:!1,ref:c,...r})};export{r as ReadOnlyContentEditable};