@lexical/react
Version:
This package provides Lexical components and hooks for React applications.
25 lines (21 loc) • 662 B
Flow
/**
* 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.
*
* @flow strict
*/
import * as React from 'react';
type Props = $ReadOnly<{
anchorElem?: ?HTMLElement,
menuRef: React.RefObject<?HTMLElement>,
targetLineRef: React.RefObject<?HTMLElement>,
menuComponent: React.Node,
targetLineComponent: React.Node,
isOnMenu: (element: HTMLElement) => boolean,
onElementChanged?: (element: HTMLElement | null) => void
}>;
declare export function DraggableBlockPlugin_EXPERIMENTAL(
props: Props,
): React.MixedElement;