@atlaskit/inline-edit
Version:
An inline edit displays a custom input component that switches between reading and editing on the same page.
10 lines (9 loc) • 325 B
TypeScript
import React from 'react';
/**
* Recursively extracts plain text content from a ReactNode.
*
* This is useful when a ReactNode needs to be represented as a string,
* e.g. for use in an `aria-label` attribute.
*/
declare const getTextFromReactNode: (node: React.ReactNode) => string;
export default getTextFromReactNode;