@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
17 lines (16 loc) • 628 B
TypeScript
import React from 'react';
import { IText } from './types/text';
declare const TextBoundary: <V extends string | unknown>(props: IText<V>, ref: React.ForwardedRef<HTMLParagraphElement> | null) => JSX.Element;
declare const Text: <V>(props: React.PropsWithChildren<IText<V>> & {
ref?: React.ForwardedRef<HTMLElement> | undefined | null;
}) => ReturnType<typeof TextBoundary>;
/**
* @description
* Text component is a component that can be used to create a text.
* @param {React.PropsWithChildren<IText<V>>} props
* @returns {JSX.Element}
* @constructor
* @example
* <Text variant="h1">Text</Text>
*/
export { Text };