UNPKG

@lexical/react

Version:

This package provides Lexical components and hooks for React applications.

10 lines (8 loc) • 597 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import{registerTabIndentation as n}from"@lexical/extension/TabIndentationExtension";export{registerTabIndentation}from"@lexical/extension/TabIndentationExtension";import{useLexicalComposerContext as t}from"@lexical/react/LexicalComposerContext";import{useEffect as e}from"react";function o({maxIndent:o,$canIndent:i}){const[r]=t();return e(()=>n(r,o,i),[r,o,i]),null}export{o as TabIndentationPlugin};