@lexical/react
Version:
This package provides Lexical components and hooks for React applications.
18 lines (17 loc) • 676 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.
*
*/
/// <reference types="react" />
import type { Props as ElementProps } from './shared/LexicalContentEditableElement';
export type Props = Omit<ElementProps, 'editor'> & ({
'aria-placeholder'?: void;
placeholder?: null;
} | {
'aria-placeholder': string;
placeholder: ((isEditable: boolean) => null | JSX.Element) | JSX.Element;
});
export declare const ContentEditable: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;