UNPKG

@lexical/text

Version:

This package contains utilities and helpers for handling Lexical text.

14 lines (13 loc) 722 B
/** * Determines if the input should show the placeholder. If anything is in * in the root the placeholder should not be shown. * @param isComposing - Is the editor in composition mode due to an active Input Method Editor? * @returns true if the input should show the placeholder, false otherwise. */ export declare function $canShowPlaceholder(isComposing: boolean): boolean; /** * Returns a function that executes {@link $canShowPlaceholder} * @param isEditorComposing - Is the editor in composition mode due to an active Input Method Editor? * @returns A function that executes $canShowPlaceholder with arguments. */ export declare function $canShowPlaceholderCurry(isEditorComposing: boolean): () => boolean;