UNPKG

@carbon/react

Version:

React components for the Carbon Design System

19 lines (18 loc) 654 B
/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { type ElementType } from 'react'; import { TextProps } from '.'; /** * 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 const createTextComponent: (element: ElementType, displayName: string) => { (props: TextProps<ElementType>): import("react/jsx-runtime").JSX.Element; displayName: string; };