@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
16 lines (15 loc) • 481 B
TypeScript
/**
* MSKCC DSM 2021, 2023
*/
import React from 'react';
import { TextProps } from './Text';
/**
* Create a text component wrapper for a given text node type. Useful for
* returning a `Text` component for a text node like a `<label>`.
* @param {string} element
* @param {string} displayName
*/
export declare function createTextComponent(element: React.ElementType, displayName: string): {
(props: TextProps<React.ElementType>): JSX.Element;
displayName: string;
};