@lexical/react
Version:
This package provides Lexical components and hooks for React applications.
20 lines (19 loc) • 651 B
TypeScript
/**
* 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 { type JSX } from 'react';
/**
* Enables hashtag support by transforming runs of text that begin with `#`
* into {@link HashtagNode}s. The editor must have the {@link HashtagNode}
* registered.
*
* This is a legacy plugin. When building an editor with the extension API,
* configure {@link HashtagExtension} instead.
*
* @returns `null`, this plugin renders no DOM of its own.
*/
export declare function HashtagPlugin(): JSX.Element | null;