carbon-react
Version:
A library of reusable React components for easily building user interfaces.
10 lines (9 loc) • 537 B
TypeScript
/**
* The placeholder component does not reside in the editor in a traditional sense, but is instead rendered
* in a separate component which is then styled to appear as if it is part of the editor. This is by design
* in the Lexical project to allow for greater flexibility in the design of the editor (apparently).
*/
import React from "react";
import { PlaceholderProps } from "../../__utils__/interfaces.types";
declare const Placeholder: ({ namespace, text }: PlaceholderProps) => React.JSX.Element;
export default Placeholder;